Death Drop
- 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 loot items using `qb-menu`.
- 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
- qb-inventory or ox_inventory
- qb-ambulancejob "or any death event from other scripts"
Events
- hospital:client:RespawnAtHospital: 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.