Gunrunning: Yacht - Bob74/bob74_ipl GitHub Wiki
Getting the main object to interact with the interior:
GunrunningYacht = exports['bob74_ipl']:GetGunrunningYachtObject()
Coordinates
This ipl can be found at:
X | Y | Z |
---|---|---|
-1363.724 | 6734.108 | 2.44598 |
Object structure
GunrunningYacht
+-- ipl
+-- Enable(state)
+-- Water
| +-- Enable
Enable/Disable
Enable or disable the yacht:
GunrunningYacht.Enable(state)
Parameter | Description | Valid values |
---|---|---|
state | Enabled or disabled | true or false |
Water
Enable or disable the water inside the yacht hot tub:
GunrunningYacht.Water.Enable(state)
Parameter | Description | Valid values |
---|---|---|
state | Enabled or disabled | true or false |
bob74_ipl
Default values set by GunrunningYacht.Enable(true)
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
GunrunningYacht = exports['bob74_ipl']:GetGunrunningYachtObject()
-- Disabling the yacht
GunrunningYacht.Enable(false)
end)