Skip to content
Documentation
Robberies5Jewelry Robbery

r_jewelryrobbery Configuration

r_jewelryrobbery config: framework and integrations, money and police, the robbery, staff, vent, gas, shoppers, alarms, cases, paintings, the centre display, wall displays, the back room safe, the fence, blips, logs and security.

All settings live in shared/config.lua, the store layout in shared/config_stores.lua (see The Store). Restart the resource after changing them.

General

R.Framework = 'auto'    -- 'auto' | 'esx' | 'qb' | 'qbox'
R.Inventory = 'auto'    -- 'auto' | 'ox_inventory' | 'qb-inventory' | 'quasar' | 'framework'
R.Target = 'auto'       -- 'auto' | 'ox_target' | 'qb-target' | 'none' (key prompt) | 'custom' (edit BridgeCustomTarget in bridge/cl_target.lua)
R.Notify = 'auto'       -- 'auto' | 'ox_lib' | 'esx' | 'qb' | 'okok' | 'quasar' | 'codesign'
R.TextUI = 'gta'        -- 'gta' | 'ox_lib' | 'okok' | 'qb' | 'jg' | 'cd' | 'esx' | 'custom' (edit BridgeTextUI in bridge/cl_textui.lua)
R.Meters = 'rscripts'   -- 'rscripts' | 'gta' | 'custom' (edit BridgeMeters in bridge/cl_meters.lua), the loot / time / cutter / alarm bars
R.Dispatch = 'auto'     -- 'auto' | 'cd_dispatch' | 'ps-dispatch' | 'qs-dispatch' | 'rcore_dispatch' | 'core_dispatch' | 'tk_dispatch' | 'lb-tablet' | 'linden' | 'op' | 'custom' | 'none'
R.Locale = ''           -- '' = ox:locale convar, or 'en' / 'fi'
R.Debug = false

R.UI = {
    Accent = '#9a27ea',
}

Prompt, bars and custom target

R.Target = 'none' shows a key prompt at the cases, paintings, display, wall displays, back room door, safe and fence. R.TextUI picks how that prompt looks: gta (default), ox_lib, okok, qb, jg, cd or esx. For custom, edit BridgeTextUI in bridge/cl_textui.lua.

R.Meters is the loot, time, gas, wake up, cutter and alarm bars during the robbery. 'rscripts' shows pills at the bottom of the screen in your Accent colour, 'gta' shows GTA's timer bars. For 'custom', fill in BridgeMeters.Show(bars) and BridgeMeters.Hide() in bridge/cl_meters.lua. Each bar has label, value (0-1), text, warn and icon.

R.Target = 'custom' is for any other target script: fill in BridgeCustomTarget in bridge/cl_target.lua (AddBoxZone, AddModels, AddEntity and Remove). Each option has name, label, icon, distance, canInteract and onSelect. The bridge/ folder is open, so you can edit it freely.

Money and police

R.Money = {
    dirty = false,          -- true = pay every cash reward as dirty money
    dirtyItem = 'auto',     -- 'auto' = ESX black_money, qb-inventory markedbills, ox/qs black_money item, or an item name
}

R.Police = {
    jobs = { 'police', 'sheriff' },
    onDutyOnly = true,
    canRob = true,          -- false = on-duty police can't start a robbery
}

dirty covers the safe cash and the fence's payment. jobs and onDutyOnly decide who counts as police, both for the police counts and for canRob. With onDutyOnly = true, an off-duty officer counts as a civilian.

Robbery

R.Robbery = {
    police = 0,             -- police needed to start
    activeTime = 15,        -- minutes the store can be looted after the robbery starts
    timer = 240,            -- seconds before the security gas fills the store, 0 = no timer
    cooldown = 60,          -- minutes until the store resets
    aimTime = 0.5,          -- seconds of aiming at the staff before they give in
    aimDistance = 8.0,
    startOnShot = true,     -- a shot fired inside the store starts the robbery
    cinematic = true,       -- animated cameras on the smash, painting and glass scenes
    bag = 45,               -- duffel bag drawable worn from the first loot until it is sold to the fence, false = none
    smashWith = { 'WEAPON_BAT', 'WEAPON_CROWBAR', 'WEAPON_HAMMER', 'WEAPON_GOLFCLUB', 'WEAPON_WRENCH', 'WEAPON_NIGHTSTICK', 'WEAPON_POOLCUE', 'WEAPON_HATCHET', 'WEAPON_BATTLEAXE' }, -- melee weapons that break the glass, every gun does too
}
OptionWhat it does
policePolice online needed to start
activeTimeMinutes the store stays open for looting
timerSeconds after a loud start before the security gas fills the store
cooldownMinutes before the store resets and can be robbed again
aimTime, aimDistanceHow long and from how far you aim at the staff to start
startOnShotA shot inside the store starts the robbery too
cinematicCamera shots while you smash, cut paintings and cut the display
bagThe duffel bag you wear from the first loot until you sell to the fence
smashWithMelee weapons that break the glass. Every gun works too

Nothing can be looted before the robbery starts. A gas start has no security gas timer: the staff wake up instead (see R.Vent).

Staff

R.Staff = {
    spawnDistance = 50.0,
    panicAfter = 6,         -- seconds without a gun on the clerk before they hit the alarm, 0 = never
    coverDistance = 7.0,    -- how close you must stand to keep the clerk covered
    downTime = 10,          -- minutes the staff stay on the floor
    speech = true,          -- staff and customers greet, beg, scream and whimper
    clerk = {
        model = 'u_f_y_jewelass_01',
        scenario = 'WORLD_HUMAN_STAND_IMPATIENT',
    },
    guard = {
        enabled = true,
        model = 'u_m_m_jewelsec_01',
        scenario = 'WORLD_HUMAN_GUARD_STAND',
        fight = true,       -- a lone robber gets shot at, two or more armed robbers make him lie down
        weapon = 'WEAPON_PISTOL',
        health = 200,
        accuracy = 25,
    },
}

After a loud start the staff hit the floor. Keep a gun on the clerk from within coverDistance metres: after panicAfter seconds without one, she hits the alarm. The guard draws his gun on a lone robber and hits the alarm. With two or more armed robbers in the store he lies down. Set fight = false to make him always lie down, or enabled = false for no guard.

Vent

R.Vent = {
    enabled = true,         -- start the robbery quietly by throwing gas into the roof vent
    weapon = 'WEAPON_BZGAS',
    radius = 1.4,           -- how close to the vent the grenade must land
    checkThrow = true,      -- the server waits for the grenade to go off at the vent, false = trust the client
    wakeAfter = 180,        -- seconds until the gas clears, the staff wake up and hit the alarm
    cinematic = true,       -- a camera inside the store shows the gas going in to the players at the vent
    cinematicDelay = 2000,  -- ms after the throw before the camera cuts inside, so the gas has spread
    cinematicTime = 6000,   -- ms
    cinematicRange = 12.0,  -- only players this close to the vent or to the thrower see the camera
    dropDelay = 3500,       -- ms after the throw before the staff and customers collapse
}

Throw a BZ gas grenade into the vent on the roof. The staff and shoppers collapse, nobody calls the police, and you have wakeAfter seconds before they wake up and hit the alarm. The store is full of gas until then, so bring a gas mask.

Gas

R.Gas = {
    enabled = true,
    damage = 5,             -- health lost every second in the gas
    alarm = true,           -- the gas also calls the police
    masks = { 'gas_mask' }, -- items that protect from the gas, {} = nothing does
    wear = { male = 46, female = 46 }, -- mask drawable put on in the vent gas while you carry a mask, false = none
}

enabled turns the security gas on. Any item in masks in your inventory protects you from both the vent gas and the security gas. In the vent gas the mask goes on your face by itself (mask slot drawable wear) and comes off when you leave the gas. If your clothing pack has another mask at 46, change the numbers, or set wear = false.

Customers

R.Customers = {
    enabled = true,
    count = 3,              -- shoppers browsing the store
    flee = 50,              -- % that run out screaming when the robbery starts, the rest cower
    models = { 'a_f_y_business_02', 'a_m_y_bevhills_01', 'a_f_m_bevhills_02', 'a_m_y_business_02', 'a_f_y_bevhills_02' },
}

Shoppers stand at the customers points in shared/config_stores.lua. When the robbery starts, some run for the door and the rest cower on the floor.

Alarms

R.Alarm = {
    delay = { 5, 15 },      -- seconds before the police get the call
    ringTime = 300,         -- seconds the store alarm rings, 0 = silent
    blip = { sprite = 617, colour = 1, scale = 1.2, time = 120 },
}

The alarm goes off when the clerk panics, the guard fights, the staff wake up, the security gas starts, or a smash or cut rolls its alarmChance. The store rings for ringTime seconds and the call goes to R.Dispatch after delay seconds, with blip on the police map.

Cases

R.Cases = {
    enabled = true,
    alarmChance = 100,      -- % a smashed case trips the alarm
    reward = {
        items = {           -- every item rolls its own %, at least one always drops
            { name = 'pocket_watch', amount = { 1, 2 }, chance = 32 },
            { name = 'diamond_ring', amount = { 1, 2 }, chance = 26 },
            { name = 'pearl_necklace', amount = { 1, 3 }, chance = 40 },
            { name = 'wedding_ring', amount = { 1, 3 }, chance = 32 },
        },
    },
}

The 20 glass cases in the middle of the store. Smash one with a gun or a smashWith weapon.

Paintings

R.Paintings = {
    enabled = true,
    alarmChance = 0,
    weapons = { 'WEAPON_SWITCHBLADE', 'WEAPON_KNIFE', 'WEAPON_DAGGER' },  -- knife the player must hold, {} = none
    reward = {
        items = {
            { name = 'painting', amount = { 1, 1 }, chance = 100 },
        },
    },
}

Four paintings on the walls. Hold a knife from weapons and make four cuts with E.

Centre display

R.Display = {
    enabled = true,
    alarmChance = 0,
    item = 'glass_cutter',  -- item needed to cut the glass, false = none
    cutTime = 12,           -- seconds of cutting to get through
    heatTime = 4,           -- seconds of non-stop cutting before it overheats
    coolTime = 3,           -- seconds to cool down from hot to cold
    overheats = 3,          -- overheats before the cutter burns out, 0 = never
    breakItem = true,       -- a burned out cutter is removed from the inventory
    prizes = {              -- one is picked for every robbery, stand = the R* stand it sits on, offset = height tweak in metres
        { item = 'pink_diamond', model = 'h4_prop_h4_diamond_01a', stand = 'h4_prop_h4_diamond_disp_01a', weight = 40 },
        { item = 'ruby_necklace', model = 'h4_prop_h4_necklace_01a', stand = 'h4_prop_h4_neck_disp_01a', weight = 30 },
        { item = 'sinsimito_tequila', model = 'h4_prop_h4_t_bottle_02a', weight = 25 },
        { item = 'panther_statue', model = 'h4_prop_h4_art_pant_01a', weight = 5 },
    },
}

Hold the left mouse button to cut. The heat bar fills over heatTime seconds: let go before it overheats. After overheats overheats the cutter burns out, and with breakItem it is gone from your inventory. A higher weight makes a prize more likely. The prizes are on The Store page.

Wall displays

R.Walls = {
    enabled = true,
    style = 'cabinet_egg',  -- cabinet_egg | cabinet_idol | cabinet_statue | cabinet_unarmed | jewel_necklace | jewel_case_e | jewel_tray_a | jewel_tray_b | heist_case_f | paleto_lock
    alarmChance = 100,      -- % smashing a wall display trips the alarm
    weapon = true,          -- a gun or an R.Robbery.smashWith weapon is needed to smash them, false = bare hands work
    max = 10,               -- wall displays that can be smashed per robbery, 0 = all (up to 30)
    reward = {
        items = {           -- every item rolls its own %, at least one always drops
            { name = 'diamond_earrings', amount = { 1, 1 }, chance = 87 },
            { name = 'diamond_ring', amount = { 1, 2 }, chance = 62 },
            { name = 'pocket_watch', amount = { 1, 2 }, chance = 50 },
            { name = 'pearl_necklace', amount = { 1, 2 }, chance = 50 },
        },
    },
}

style is the smash animation at the wall displays. max is how many can be smashed in one robbery.

Back room safe

R.Vault = {
    enabled = true,
    cutter = 'bolt_cutter', -- item that cuts the back room door lock, false = no item needed
    alarmChance = 100,      -- % cutting the back room door lock trips the alarm
    pins = 3,               -- numbers in the safe combination
    tolerance = 3,          -- numbers you may turn past the click and still confirm
    hint = true,            -- the lock lights up when it clicks
    mistakes = 3,
    timeLimit = 0,          -- seconds to crack the safe, 0 = no limit
    reward = {
        money = { 15000, 25000 },
    },
}

Cut the back room door lock with the cutter, then turn the dial with A and D (hold Shift to spin faster). When it clicks, press E and the direction flips. After mistakes wrong numbers the attempt fails, and the next try has a new combination.

Fence

R.Fence = {
    enabled = true,
    police = 0,
    model = 'a_m_m_eastsa_01',
    scenario = 'WORLD_HUMAN_DRUG_DEALER',
    coords = vec4(109.24, -2016.02, 18.41, 165.27),
    refresh = 60,           -- minutes between price changes, 0 = fixed until restart
    blip = false,
    tip = true,             -- the fence texts you when you leave the store with loot
    waypoint = true,        -- and marks the fence on your GPS
    phone = 'gta',          -- 'gta' | 'lb-phone' | 'custom' (edit Bridge.Phone in bridge/cl_bridge.lua)
    items = {
        { name = 'wedding_ring', price = { 80, 140 } },
        { name = 'pearl_necklace', price = { 140, 220 } },
        { name = 'pocket_watch', price = { 180, 260 } },
        { name = 'diamond_ring', price = { 300, 420 } },
        { name = 'diamond_earrings', price = { 900, 1300 } },
        { name = 'painting', price = { 2200, 3200 } },
        { name = 'sinsimito_tequila', price = { 2500, 3500 } },
        { name = 'ruby_necklace', price = { 3500, 4800 } },
        { name = 'pink_diamond', price = { 4500, 6500 } },
        { name = 'panther_statue', price = { 12000, 16000 } },
    },
}
OptionWhat it does
policePolice online needed before the fence buys
coordsWhere the fence stands
refreshMinutes between new prices. Each price is picked inside its price range
blipShows the fence on the map for everyone
tipThe fence texts you where to meet when you leave the store with loot
waypointThe text also sets a GPS waypoint
phone'gta' is a GTA phone notification, 'lb-phone' a message on lb-phone
itemsWhat the fence buys and the price range of each

For another phone, set phone = 'custom' and fill in Bridge.Phone.custom in bridge/cl_bridge.lua. Return true when the message was sent.

Blips, admin and logs

R.Blips = {
    enabled = true,
    sprite = 617,
    colour = 3,
    scale = 0.8,
}

R.Admin = {
    command = 'jewelryrobbery',
    group = { 'group.admin', 'group.god' },
}

R.Logs = {
    enabled = true,
    type = 'webhook',       -- 'webhook' (set it in server/sv_custom.lua) | 'ox_lib'
    showIp = false,
}

The admin command is on the Exports page.

Security

R.Security = {
    interactDistance = 2.5,
    requestCooldown = 500,  -- ms
}

These are the defaults. interactDistance is the extra reach the server allows, requestCooldown how often one player can send an action.