Configuration
LANGUAGE
The active locale name.
POLICE_REQUIRED
The amount of cops required to be online.
ROBBERY_INTERVAL
The time to wait between two train heists.
BREAK_ITEM
The name of the item required to break in the containers.
QB_MAX_WEIGHT
The player's inventory maximum weight. This is only for QB-Core users.
LOOT
The loot configuration.
item
: string, item name.stack
: integer, amount of item earned per stack.price
: integer, item's selling price.
START_SCENE
The starting scene configuration.
enable
: boolean, enables the start scene. This can be disabled to start the train heist from the event:exp_trainheist:StartHeist
ped
:model
: string, ped's model name (See the list of ped models)coords
: vector3, ped's world position.heading
: number, ped's heading.
GUARDS
The guards configuration.
models
: table, list of strings, ped model names. (See the list of ped models)amount
: integer, amount of guards to spawn.spawn_range
: number, maximum distance from the train center to spawn guards.weapons
: table, list of strings, weapon model names. (See the list of weapon models)armour
: number (0-100), amount of armor given to guards.accuracy
: number (0-100), level of accuracy for the guards.
TRAIN
The train configuration.
position
: vector3, locomotive's world position.heading
: vector3, locomotive's heading.length
: integer, number of train parts (without the locomotive).angle
: number, pitch of the train. Useful for hills.
TRAIN_PARTS
The list of train part vehicle models. "freightcar" is the model used to spawn containers. Putting it in the list allows the train to have multiples freightcar parts, instead of just one.
Last updated