Configuration
Configuration
All settings are stored in config.lua.
Core Modes
Framework
Config.Framework = 'auto' -- 'auto' | 'esx' | 'qb'auto– detectes_extendedorqb-core/qbx-coreautomatically.esx/qb– force a specific framework.
Inventory
Config.Inventory = 'auto' -- 'auto' | 'ox' | 'qb'auto– detectox_inventoryorqb-inventory.ox– forceox_inventory.qb– forceqb-inventory.
The inventory bridge is used for all item checks, adding and removing items.
Locale & Notify
Config.Locale– which language to use fromlocale/locales.lua('en','hr', or your custom).Config.Notify:esx– ESX notifications (if ESX is running).okok–okokNotifyresource (if started).
Config.NotifyTitle– title used for okok/notify providers that support a title.
Discord Logging
Set
Webhookto your Discord webhook URL to enable:Robbery start embeds
Loot embeds If empty, Discord logging is disabled.
Minigame Bridge
provider– which minigame implementation to use.resource– which resource to call exports from.options– provider-specific configuration.
If the provider or resource is missing, the script will fall back to a simple timed progress bar using ox_lib (if available) or Wait.
Noise / Alarm System
Threshold– noise level at which the alarm triggers.GainRun– noise gained while running/sprinting.GainWalk– noise gained while walking.GainAction– noise gained on actions (e.g. shooting).Decay– how fast noise decreases when crouched.TickInterval– update interval in milliseconds.
A HUD bar is drawn on the client showing current noise percentage.
Robbery Start & Basic Settings
StartRadius– distance from aStartLocationwhere the prompt appears.RequiredItem– item name required to start a robbery (must exist in your inventory system).Cooldown– per-player cooldown between attempts (in minutes).
Houses (Interiors)
Each house entry:
ipl– name of the IPL / interior (string).coord– vector3 coordinates inside the apartment.chance– weight for random selection (higher value = more likely).
The script picks one house based on these weights when a robbery starts.
Police Settings
minOnline– minimum number of police online to allow robberies and alarms.jobName– job name used to count police players (ESX / QB job).
Dispatch Bridge
Supported values:
'lb-tablet'– LB Tablet dispatch.'tk'–tk_dispatch.'ps'–ps-dispatch.'next'– Next Scriptsdispatch.'none'– disable dispatch entirely.
Each dispatch adapter uses its own API and passes translated titles/descriptions based on locale/locales.lua.
Loot Configuration
For each IPL/interior (zones['iplName']):
Each table entry is a loot zone:
coords– vector3 of the spot.radius– (optional) radius for target interaction.If omitted,
Config.Loot.defaultRadiusis used.
items– list of possible loot items:name– item name.chance– relative weight for this item (all chances are normalized per zone).min/max– random quantity range if this item is selected.
Server picks one item based on chance values and adds it to the player.
Start Locations
Each vector3 is a world position where the robbery can be started.
If a player is within
Config.StartRadiusof any point, the E to start help text appears.
Locales
Locales are configured in locale/locales.lua:
Locales['en']– English strings.Locales['hr']– Croatian strings.
The helper L(key, ...) reads from Config.Locale.
You can:
Change existing texts.
Add new language tables (e.g.
Locales['de'] = { ... }).Set
Config.Locale = 'de'to use your language.
Last updated