GTA V: Ammunations - Bob74/bob74_ipl GitHub Wiki
Getting the main object to interact with the interior:
Ammunations = exports['bob74_ipl']:GetAmmunationsObject()
Object structure
Ammunations
+-- ammunationsId
+-- gunclubsId
+-- Details
+-- hooks
+-- hooksClub
+-- Enable(details, state, refresh)
Hooks
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 |
bob74_ipl
Default values set by LoadDefault = function()
Ammunations.Details.Enable(Ammunations.Details.hooks, true, true)
Ammunations.Details.Enable(Ammunations.Details.hooksClub, true, true)
end
Example: How to use in your own resources
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)