Configuration

All v42 scripts include clearly structured and editable files, featuring exports, client- and server-side functions, and configuration options. Designed to give developers full control and flexibility

View Configuration
-- ATM Robbery Configuration
Config = Config or {}

-- [ General Settings ]
Config.Debug = false                  -- Enable debug mode (true/false)
Config.Framework = 'qb'               -- Framework to use ('esx' or 'qb')
Config.CoreName =
'qb-core'                             -- Framework core name (change only if you renamed the core folder 'es_extended' or 'qb-core')
Config.policeDispatch =
'qs-dispatch'                         -- Enable police dispatch integration ('ps-dispatch' or 'qs-dispatch', can be edited in the cl_editable.lua)

-- [ Police Settings ]
Config.PoliceJob = 'police' -- Police job name
Config.ATMCops = 3          -- Minimum number of police officers required to rob an ATM

-- [ Robbery Settings ]
Config.SuccesChance = 3      -- Success chance (1 = 25%, 2 = 50%, 3 = 75%, 4 = 100%)
Config.Cooldown = 180        -- Cooldown per ATM in minutes (default: 180 minutes)
Config.BombItem = 'atm-bomb' -- Item required to plant a bomb on the ATM

-- [ Reward Settings ]
Config.RewardItem = true        -- Reward type: true = loot item, false = cash
Config.LootItem = 'markedbills' -- Loot item name (e.g., 'gold', 'markedbills')
Config.RewardAmount = 3         -- Max loot items (random between 1 and this value)
Config.Worth = {                -- Loot item worth (for marked bills or equivalent, used for QBCore)
    min = 2500,                 -- Minimum worth
    max = 5400                  -- Maximum worth
}
Config.Money = {                -- Cash reward (if Config.RewardItem = false)
    min = 7500,                 -- Minimum cash reward
    max = 16200                 -- Maximum cash reward
}

-- [ ATM Objects ]
Config.ATMObjects = { -- List of ATM object models
    'prop_atm_01',
    'prop_atm_02',
    'prop_atm_03',
    'prop_fleeca_atm'
}

-- [ Translations ]
Config.Lang = {                                                 -- Language strings for UI/notifications
    plantbomb = 'Planting the bomb...',                         -- Message when planting the bomb
    robbed = 'This ATM has been recently robbed!',              -- Message when ATM is on cooldown
    nopolice = 'There are not enough police officers on duty!', -- Message when not enough police
    loot = 'Looting...',                                        -- Message during looting
    wentWrong = 'Something went wrong, the explosion failed!',  -- Message if bomb fails
    empty = 'This ATM is empty...',                             -- Message if the ATM has no loot
    placeBomb = 'Place bomb',                                   -- Interaction text to place a bomb
    lootATM = 'Loot ATM',                                       -- Interaction text to loot the ATM
    disable = 'Confiscate ATM',                                 -- Interaction text for police
    alert = 'ATM robbery alert',                                -- Message sent to police during robbery
    canceled = 'Canceled!',                                     -- Message when an action is canceled
    remove = 'Confiscating...'                                  -- Message when police confiscate a robbed ATM
}

-- [ Internal States - Do Not Edit ]
Config.RobbedATMs = {} -- Tracks recently robbed ATMs (do not modify)
Config.BlownATMs = {}  -- Tracks blown ATMs (do not modify)

Last updated