-
Notifications
You must be signed in to change notification settings - Fork 237
GTA V: Cargo ship
Indra edited this page Apr 14, 2024
·
1 revision
Getting the main object to interact with the interior:
CargoShip = exports['bob74_ipl']:GetCargoShipObject()
This ipl can be found at:
X | Y | Z |
---|---|---|
-168.1825 | -2364.8259 | 20.000 |
CargoShip
+-- State
| +-- normal
| +-- sunk
| +-- Set(state)
| +-- Clear()
+-- LoadDefault()
Setting the ship state:
CargoShip.State.Set(state)
Parameter | Description | Valid values |
---|---|---|
state | Normal | CargoShip.State.normal |
Sunk | CargoShip.State.sunk |
LoadDefault = function()
CargoShip.State.Set(CargoShip.State.normal)
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
CargoShip = exports['bob74_ipl']:GetCargoShipObject()
-- Seting the ship as sunk
CargoShip.State.Set(CargoShip.State.sunk)
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