
FiveM Bury Items Script
A fully-featured, immersive burial system for FiveM that allows players to bury and retrieve items anywhere on the map. Perfect for roleplay servers hidden stash mechanics.
How It Works
Burying Items:
- Player types
/burycommand - Selects item(s) from inventory via ox_lib menu
- Specifies quantities for each item
- Option to add multiple different items
- Confirms selection and watches burial animation
- Dirt pile spawns at location
- Items removed from inventory and saved to database
Dependencies
- oxmysql - Database operations
- ox_lib - Menus and progress bars
- ESX or QBCore - Framework (choose one)
Dirt Pile Prop:
Spawns a visible dirt pile at every burial location- Synced across all clients in real-time
- Persists through server restarts (loaded from database)
- Automatically removed when items are dug up
- Configurable Z-offset to adjust ground positioning
Configuration Options
Config.Framework = 'ESX' or 'QBCORE'
Config.BuryDistance = 2.0 -- Distance required to bury
Config.FindDistance = 3.0 -- Detection range for buried items
Config.InteractKey = 38 -- Key to interact (E key)
Config.BuryTime = 5000 -- Time to bury items (ms)
Config.DigTime = 3000 -- Time to dig up items (ms)
Config.BuryProp = 'prop_pile_dirt_01' -- Visual prop
Config.PropZOffset = -0.9 -- Ground height adjustment
Config.UseOxLib = false -- ox_lib notifications
Video Preview:
Tebex Link [HERE]
[MY OTHER RELEASES]
Battle Royale
Prop Hunt
Bedwars
Gym + Skills Script
Weapon Throwing
Kill Effects
Temperature/Immunity
Dungeons
Team Deathmatch
Hunger Games
| Code is accessible | Yes |
| Subscription-based | No |
| Lines (approximately) | ~500 |
| Requirements | ESX/QBCore |
| Support | Yes |