Configuration
This is the doc that contains the full config.lua for Deathbag, so you can get a full look at what is all configurable.
Config = {}
-- Set to true to enable debug prints
Config.debug = false
-- Set to false to disable targeting interaction, will use "PRESS E TO LOOT" prompt instead
Config.useTarget = true
-- The bag will only spawn when the player is put into a hospital bed/respawn by this event
-- Default is for qbx-ambulancejob
-- qb-core: qbx_ambulancejob:server:playerEnteredBed
-- esx_ambulancejob: esx_ambulancejob:putInBed
--
-- (!) Make sure its using the server event not the client event.
Config.hospitalBedEvent = "qbx_ambulancejob:server:playerEnteredBed"
-- Model of the death bag
Config.bagModel = 'prop_cs_heist_bag_01'
-- Animation settings
Config.Animation = {
openAnimation = 'PROP_HUMAN_BUM_BIN', -- Animation when opening the bag
openDuration = 3000 -- Duration of the opening animation
}
-- Interaction settings
Config.Interaction {
label = "Loot Bag", -- Interaction label (Target Only)
distance = 2.0, -- Interaction distance (used for both target and non-target)
prompt = "PRESS E TO LOOT" -- Prompt text when not using target system
}
-- Set to true to allow other players to steal death bags
Config.allowBagTheft = false
-- Time in seconds before the death bag despawns (1200 seconds = 20 minutes)
Config.bagLifetime = 1200
-- Set to true to cleanup death bags on resource restart
Config.cleanupBagsOnResourceRestart = true
-- Items that will not be added to death bag (e.g., {'phone', 'id_card'})
Config.blacklistedItems = {'phone', 'id_card'}
return ConfigLast updated