RM-ScriptsRM-SCRIPTS
Containers

Configuration

Configuration options for the Containers resource.

Configuration

Config = {}

Config.Framework = 'qbcore'

Config.RespawnTime = 900

Config.PoliceAlert = true
Config.PoliceJob   = 'police'

Config.Containers = {
    {
        label  = 'Dockyard Crate',
        prop   = 'prop_box_ammo02a',
        coords = vector4(-453.4, -2768.9, 6.0, 90.0),
        loot   = {
            { item = 'metalscrap',  min = 2, max = 8,  chance = 80 },
            { item = 'copper',      min = 1, max = 3,  chance = 40 },
            { item = 'pistol_ammo', min = 5, max = 15, chance = 20 },
        },
    },
}

Options

KeyTypeDescription
RespawnTimenumberSeconds before container refills
PoliceAlertbooleanAlert police on search
PoliceJobstringJob to notify
ContainerstableContainer definitions with loot tables