Skip to content

The Chop Shop: Cargo ship

Indra edited this page Apr 27, 2024 · 2 revisions

Getting the main object to interact with the interior:

ChopShopCargoShip = exports['bob74_ipl']:GetChopShopCargoShipObject()

Coordinates

This ipl can be found at:

X Y Z
-344.4349 -4062.832 17.000

Object structure

ChopShopCargoShip
  +-- Ipl
  |   +-- ipl
  |   +-- Load()
  |   +-- Remove()
  +-- LoadDefault()

Ipls

Loading Ipls related files in game:

ChopShopCargoShip.Ipl.Load()

Removing Ipls from game:

ChopShopCargoShip.Ipl.Remove()

Default values set by bob74_ipl

LoadDefault = function()
	ChopShopCargoShip.Ipl.Load()
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
	ChopShopCargoShip = exports['bob74_ipl']:GetChopShopCargoShipObject()

	-- Removing the cargo ship
	ChopShopCargoShip.Ipl.Remove()
end)
Clone this wiki locally