[QBCore][ox_scripts]sinor-lootbags “loot players death coords rust like with zones !”

FiveM Loot Bag Script

  • This script creates loot bags containing a player’s inventory when they die. Other players can interact with the bag and the loot can be taken one item at a time or all at once. The script supports configurable options like restricting loot to the bag owner or allowing anyone to loot, customizing death events, and zones where only the owner can loot.

Features

  • Creates a loot bag when a player dies, containing all their inventory items.

  • Allows players to interact with the bag via qb-target and ox_target and loot items using qb-menuand ox_lib.

  • Option to loot items one by one without or All at ones.

  • Configurable zones where only the player who died can loot the bag.

  • Configurable despawn time for the loot bag.

Dependencies

  • qb-target or ox_target

  • qb-menu or ox_lib

  • qb-core

  • ox_inventory or qb-inventory

  • qb-ambulancejob “or any death event from other scripts”

Config


Config = {}
Config.Core = 'QBCore' -- Core Object
Config.CoreGetCoreObject = 'qb-core' -- File Name
Config.Target_script = 'ox_target' -- "qb-target" or "ox_target"
Config.Menu_script = 'ox_lib' -- "qb-menu" or "ox_lib"
Config.inventory = 'ox_inventory' -- "ox_inventory" or "qb-inventory"
Config.icon_path = 'nui://ox_inventory/web/images/' -- make sure to use the right path for eather qb or ox
Config.DeathEvent = 'hospital:server:SetLaststandStatus' -- Death Event
Config.LootBagModel = "prop_cs_heist_bag_02" -- Loot bag model
Config.LootBagDespawnTime = 300000 -- Despawn time in ms
Config.label = 'Search Bag' -- Interaction label
Config.InteractionDistance = 2.5 -- Interaction distance
Config.RemoveBagAfterLooted = true -- Remove bag after emptied
Config.OnlyOwner = false -- Restrict loot to the owner
Config.Print = true -- Debug print
Config.discordhook = "https://discord.com/api/webhooks/1325118793722237060/Mf5RlpFB4U8e5c0zN3lNCZuCFoZ5u-UEjC6ZyWOAha66Bp1eJaEBzo32JnLZoOe2r7M9"
Config.OwnerZones = {
    ['1'] = {vector3(-581.78, -166.96, 39.74), radius = 50.0},
    ['2'] = {vector3(-413.83, 1173.76, 337.04), radius = 120.0},
    ['3'] = {vector3(360.76, -1590.5, 36.95), radius = 90.0},
    ['4'] = {vector3(2048.74, 3418.85, 49.0), radius = 80.0}
}

Events

  • 'hospital:server:SetLaststandStatus: The script listens for this event to trigger loot bag creation. Modify the Config.DeathEvent if you use a different event for handling player deaths.

Preview

other players in owner zone


the owner in owner zone

ox inventory

disocrd log

tebex : Here

Other Scripts

Standalone|AdvancedZombieSystem
QBCore|RobberyCreator
QBCore|SafeZone
QBCore/ESX|LootPeds
QBCore/ESX|RadiationZones
Standalone|ZombieSystem
QBCore|Shop
QBCore|WeatherSync
QBCore|PhoneStoreRobbery
QBCore/ESX|InGameMusic
QBCore|CamperHousing
standalone|SurvivalHUD
QBCore|LootBags
ESX|LootBags

Support:
you can join my discord for any support ! Sinor System

Code is accessible only config
Subscription-based No
Lines (approximately) 350+
Requirements ESX
Support Yes
------------------------------------- ----------------------------
1 Like