Configuration
Everything is in config.lua. No other files need to be edited.
General settings
| Key | Default | Description |
|---|---|---|
Config.Locale | 'es' | Language: 'en' or 'es' |
Config.RobPeds | true | Enable NPC robbery |
Config.RobPlayers | true | Enable player robbery |
Config.ScanDistance | 4.0 | Metres to detect targets |
Config.RobDistance | 2.2 | Metres to show the E prompt |
Config.PedCooldown | 300000 | Per-ped cooldown (ms) — 5 min default |
Config.PlayerCooldown | 120000 | Per-player cooldown (ms) — 2 min default |
Blocked models (Config.BlockedModels)
Array of NPC model names that are never valid targets. Defaults include all police, security and army models.
Loot table (Config.PedActions)
Config.PedActions = {
{
id = 'pockets',
label = { en = 'Search pockets', es = 'Buscar bolsillos' },
description = { en = '...', es = '...' },
icon = 'search',
color = 'yellow',
duration = 4000,
cash = { min = 40, max = 320 },
items = {
{ item = 'phone', label = { en = 'Phone', es = 'Teléfono' }, chance = 25 },
},
},
}
| Field | Description |
|---|---|
id | Unique action identifier |
label | Menu label (EN/ES) |
description | Menu description (EN/ES) |
icon | SVG icon name from fr_menu |
color | fr_progressbar color theme: 'blue', 'red', 'green', 'yellow' |
duration | Bar duration (ms) |
cash | Cash range: { min, max } |
items | Items array with item, label and chance (0-100 %) |
Player robbery (Config.PlayerActions)
Config.PlayerActions = {
{
id = 'cash',
cashPercent = { min = 20, max = 60 },
cashFlat = { min = 200, max = 800 },
},
}
Police alert
| Key | Default | Description |
|---|---|---|
Config.AlertOnRobbery | true | Add a flashing blip after robbery |
Config.AlertCrimeName | 'STEALING' | GTA crime name for dispatch |
Config.AlertBlipFlash | true | Flash the blip |
Config.AlertBlipDuration | 15 | Seconds the blip lasts |