-
Notifications
You must be signed in to change notification settings - Fork 237
GTA V: Ammunations
Bob74 edited this page Nov 2, 2018
·
2 revisions
Getting the main object to interact with the interior:
Ammunations = exports['bob74_ipl']:GetAmmunationsObject()
Ammunations
+-- ammunationsId
+-- gunclubsId
+-- Details
+-- hooks
+-- hooksClub
+-- Enable(details, state, refresh)
Setting the gun display hooks:
Ammunations.Details.Enable(details, state, refresh)
Parameter | Description | Valid values |
---|---|---|
details | For ammunations or gun clubs |
Ammunations.Details.hooks or Ammunations.Details.hooksClub
|
state | enabled or disabled |
true or false
|
refresh | Refresh the whole interior |
true or false
|
LoadDefault = function()
Ammunations.Details.Enable(Ammunations.Details.hooks, true, true)
Ammunations.Details.Enable(Ammunations.Details.hooksClub, true, true)
end
You can handle and customize the interiors in your own resources using the exported functions:
Citizen.CreateThread(function()
-- Getting the object to interact with
Ammunations = exports['bob74_ipl']:GetAmmunationsObject()
-- No hooks in ammunations
Ammunations.Details.Enable(Ammunations.Details.hooks, false, true)
-- Hook enabled in gun clubs
Ammunations.Details.Enable(Ammunations.Details.hooksClub, true, true)
end)
- Home
- GTA V
- GTA Online
- DLC: High life
- DLC: Heists
- DLC: Executives & Other Criminals
- DLC: Finance & Felony
- DLC: Bikers
- DLC: Import/Export
- DLC: Gunrunning
- DLC: Smuggler's Run
- DLC: The Doomsday Heist
- DLC: After Hours
- DLC: Los Santos Drug Wars
- DLC: San Andreas Mercenaries
- DLC: The Chop Shop
- DLC: Bottom Dollar Bounties