Skip to content

Heists: Yacht

Bob74 edited this page Oct 20, 2019 · 6 revisions

Getting the main object to interact with the interior:

HeistYacht = exports['bob74_ipl']:GetHeistYachtObject()

Coordinates

This ipl can be found at:

X Y Z
-2043.974 -1031.582 11.981

Object structure

HeistYacht
  +-- ipl
  +-- Enable(state)
  +-- Water
  |   +-- Enable

Enable/Disable

Enable or disable the yacht:

HeistYacht.Enable(state)
Parameter Description Valid values
state Enabled or disabled true or false

Water

Enable or disable the water inside the yacht hot tub:

HeistYacht.Water.Enable(state)
Parameter Description Valid values
state Enabled or disabled true or false

Default values set by bob74_ipl

HeistYacht.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
    HeistYacht = exports['bob74_ipl']:GetHeistYachtObject()

    -- Disabling the yacht
    HeistYacht.Enable(false)
end)
Clone this wiki locally