Configuration
The Shop Robbery script is highly configurable through the cfg.lua file. This page explains all the available configuration options.
General Configuration
lib.locale('en') -- en | de | es | fr | pl
cfg = {
framework = 'auto', -- auto | qb | esx
progressType = 'circle', -- circle | bar
target = 'ox', -- ox | qb
notify = 'ox', -- ox | qb | esx | okok | sd | wasabi | 17mov | codem
minigame = false, -- Can be edited in the bridge/client/minigame.lua file.
dispatch = 'auto', -- auto | cd_dispatch | ps-dispatch | origen_police | lb-tablet | rcore_dispatch | redutzu-mdt | core_dispatch | qs-dispatch | tk_dispatch | op-dispatch | emergencydispatch
models = {
safe = `qua_heist_safe`,
openSafe = `qua_heist_safe_open`,
emptySafe = `qua_heist_safe_empty`,
drillSafe = `qua_heist_drill_safe`,
},
personalCooldown = 300, -- seconds or false
requiredLEOCount = 0,
leoJobs = {
'police',
'sheriff',
},
shops = {
-- {
-- name = 'example-config',
-- coords = vector3(29.49, -1345.56, 29.5),
-- radius = 10.0,
-- safeCoords = vec4(28.9, -1340.08, 29.01, 90.0),
-- cooldown = 300, --seconds or false
-- required = {
-- crouch = true,
-- items = {
-- { name = 'gig_drill', amount = 1, remove = true },
-- },
-- weapon = {
-- active = true,
-- blacklist = { 'WEAPON_UNARMED', 'WEAPON_KNIFE' },
-- whitelist = false, -- or { 'WEAPON_PISTOL' }
-- },
-- },
-- drill = {
-- duration = 120, -- seconds
-- placeDrillDuration = 10, -- seconds
-- repairDuration = 10, -- seconds
-- jamChance = 3, -- percentage
-- },
-- reward = {
-- cash = 10000, -- or { 10000, 20000 } for random amount
-- items = {
-- { name = 'goldbar', amount = { 1, 2 } }, -- or { { name = 'phone', amount = 1 }, { name = 'water_bottle', amount = { 3, 5 } } } for random amount
-- },
-- },
-- },
},
}
Bridge Files
Bridge files contains all the necessary framework related codes and codes that require access to other assets.
Save your changes
After making changes to the configuration file, save it and restart the script using:
ensure gigShopRobbery