🚘
EXPLORE
  • 👋Welcome
  • 🏦Bank Robbery
    • ➡️Install
    • Configuration
    • Client Functions
  • 🎯Target Menu
    • Configuration
    • Client Functions
  • 🚂Train Heist
    • ➡️Install
    • Configuration
    • Client Functions
  • 🚩Turf Wars
    • Configuration
  • 🏎️Car Heist
    • Configuration
  • 🎴Card Menu
    • Client Exports
  • 💻Hack
    • ➡️Install
    • Configuration
Powered by GitBook
On this page
  • LANGUAGE
  • POLICE_REQUIRED
  • ROBBERY_INTERVAL
  • BREAK_ITEM
  • QB_MAX_WEIGHT
  • LOOT
  • START_SCENE
  • GUARDS
  • TRAIN
  • TRAIN_PARTS
  1. Train Heist

Configuration

LANGUAGE

The active locale name.

LANGUAGE = 'en'

POLICE_REQUIRED

The amount of cops required to be online.

POLICE_REQUIRED = 0

ROBBERY_INTERVAL

The time to wait between two train heists.

ROBBERY_INTERVAL = 2*60*60000 -- 2 Hours

BREAK_ITEM

The name of the item required to break in the containers.

BREAK_ITEM = "grinder"  -- Required item to break into containers.

QB_MAX_WEIGHT

The player's inventory maximum weight. This is only for QB-Core users.

QB_MAX_WEIGHT = 120000 -- Only For QB-Core

LOOT

The loot configuration.

  • item: string, item name.

  • stack: integer, amount of item earned per stack.

  • price: integer, item's selling price.

LOOT = {
    item = "gold_ingot",    -- Item Name
    stack = 25,             -- Amount of gold ingots grabbed per stack
    price = 300             -- 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:

    • coords: vector3, ped's world position.

    • heading: number, ped's heading.

START_SCENE = {
    enable = true,
    ped = {
        model = "s_m_m_highsec_01",
        coords = vector3(-687.82, -2417.1, 12.9445),
        heading = 320.78
    }
}

GUARDS

The guards configuration.

  • amount: integer, amount of guards to spawn.

  • spawn_range: number, maximum distance from the train center to spawn guards.

  • armour: number (0-100), amount of armor given to guards.

  • accuracy: number (0-100), level of accuracy for the guards.

GUARDS = {
    models = {
        "s_m_y_blackops_01"
    },
    amount = 15,
    spawn_range = 30.0,
    weapons = {
        "WEAPON_PISTOL"
    },
    armour = 50,
    accuracy = 50
}

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 = {
    position = vector3(-3.21, 3441.62, 49.58),
    heading = 59.28,
    length = 5,
    angle = 1.0
}

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.

TRAIN_PARTS = {"freightcar", "freightcont1", "freightcont2", "freightgrain", "tankercar"}

Last updated 9 months ago

model: string, ped's model name ()

models: table, list of strings, ped model names. ()

weapons: table, list of strings, weapon model names. ()

🚂
See the list of ped models
See the list of ped models
See the list of weapon models