Configuration Files

This section covers the various configuration files that allow you to customize the heist system to match your server's needs. Each file controls different aspects of the system, from basic settings t

config.lua

The main configuration file controls general settings, framework integrations, and defines items and weapons.

General Settings

Setting
Type
Description

debug

Boolean

Enables debug mode with additional console output

dev_mode

Boolean

Enables developer mode with testing features

lang

String

Language setting (e.g., 'en')

notify

String

Notification system to use ('ox', 'default', 'qb', 'esx', 'nd')

doorlock

String

Door lock system to use ('auto', 'ox', 'qb', 'jaksam')

old_ox_doorlock

Boolean

Support for older versions of ox_doorlock

custom_dispatch

Boolean

Whether to use custom dispatch code in bridge/client/utils.lua

custom_loot

Boolean

Whether to use custom loot code in bridge/server/utils.lua

Police Jobs

Define which job identifiers are considered police for heist requirements.

police_jobs = {
    police = true,
    sheriff = true,
    -- Add more police job identifiers here
},

Items Configuration

Example:

Weapons Classification

The weapons section categorizes weapon hashes into types for requirement checks.

Available weapon categories:

  • 'melee'

  • 'handgun'

  • 'rifle'

  • 'smg'

  • 'lmg'

  • 'shotgun'

  • 'sniper'

  • 'heavy'

  • 'throwable'

  • 'other'

Example:

Clothing Configuration

The clothing section defines which clothing items are considered bags and which glove types are available.

alerts.lua

This file contains presets for police alerts triggered during heists.

Alert Properties

Property
Type
Description

title

String

Title of the alert notification

msg

String

Message text (can include %s placeholders)

code

String

Police code (e.g., '10-XX')

flash

Integer

Flash duration for notification

blip

Table

Configuration for map blip

Blip Properties

Property
Type
Description

sprite

Integer

Icon ID for the map blip

scale

Float

Size of the blip

colour

Integer

Color ID of the blip

flashes

Boolean

Whether the blip flashes

text

String

Text displayed when selecting the blip

time

Integer

Duration in milliseconds before blip disappears

sound

Integer

Sound ID to play when alert appears

Example:

Example

Dispatch System Compatibility

The comments in the alerts.lua file indicate which dispatch scripts support each property:

  • core = core_dispatch (supports title, code, blip sprite, blip scale)

  • rcore = rcore_dispatch (supports title, code, blip properties except time and sound)

  • qs = qs-dispatch (supports all properties)

  • cd = cd_dispatch (supports all properties)

  • ps = ps-dispatch (supports all properties except flash)

  • origen = origen_police (supports message)

documents.lua

This file configures the document/briefing system that provides players with information about heists.

Setting
Type
Description

enabled

Boolean

Whether the menu for document system is enabled

command

String/Boolean

Command to open briefings, or false to disable

key

String/Boolean

Keyboard key to open briefings, or false to disable

zone

Table/Boolean

Target zone configuration, or false to disable zone

Example

Document Presets

The presets table contains document entries that players can access. Each preset has:

Property
Type
Description

show_in_menu

Boolean

Whether to show in the briefing menu

title

String

Title of the document (supports Markdown)

description

String

Main content of the document (supports Markdown)

task

String/Boolean

Task description, or false to hide (supports Markdown)

items

String/Boolean

Required items listed as text, or false to hide (supports Markdown)

image

String/Boolean

Markdown image tag with URL, or false for no image

Example Document Preset:

Example

gas.lua

This file defines the positions where gas effects appear when triggered during heists.

Each preset is an array of vector3 coordinates where gas clouds will spawn.

Example

lasers.lua

This file configures laser security systems that can be enabled during heists.

Laser Preset Structure

Each laser system consists of:

Property
Type
Description

origins

Vector3

Origin point for the laser beams

targets

Array

Array of Vector3 coordinates where lasers point to

settings

Table

Configuration for the laser system

Laser Settings

Setting
Type
Description

render_zone

Table

Zone where lasers are rendered

color

Array

RGBA color values for laser beams

travelTimeBetweenTargets

Array

Min/max time to move between targets

waitTimeAtTargets

Array

Min/max time to pause at targets

randomTargetSelection

Boolean

Whether to select targets randomly

name

String

Unique identifier for the laser system

Example:

Example

webhooks.lua

This file configures Discord webhooks for logging different types of heist events.

Available Webhook Types

Webhook
Description

system

General system events and errors

entities

Entity spawning and deletion

cooldowns

Heist cooldown started/ended events

timers

Heist timer events

reset

Heist reset events

rewards

Items given as rewards

removed_items

Items removed from players

interaction

Player interactions with heist objects

functions

Function and event calls

Example:

Creating Discord Webhooks

To create a Discord webhook:

  1. Open your Discord server settings

  2. Navigate to "Integrations" > "Webhooks"

  3. Click "New Webhook"

  4. Name it appropriately (e.g., "Heist System Logs")

  5. Select the channel where logs should appear

  6. Copy the webhook URL

  7. Paste into the corresponding field in webhooks.lua

Last updated