Skip to content

Los Santos Drug Wars: Train crash

Indra edited this page Apr 27, 2024 · 2 revisions

Getting the main object to interact with the interior:

DrugWarsTrainCrash = exports['bob74_ipl']:GetDrugWarsTrainCrashObject()

Coordinates

This ipl can be found at:

X Y Z
2630.595 1458.144 25.3669

Object structure

DrugWarsTrainCrash
  +-- ipl
  +-- Enable(state)

Enable/Disable

Enable or disable the train crash:

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

Default values set by bob74_ipl

DrugWarsTrainCrash.Enable(false)

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
    DrugWarsTrainCrash = exports['bob74_ipl']:GetDrugWarsTrainCrashObject()

    -- Enabling the train crash
    DrugWarsTrainCrash.Enable(true)
end)
Clone this wiki locally