Bury Items [ESX/QBCore]

Bury items script - Made with Clipchamp

:dart: How It Works

Burying Items:

  1. Player types /bury command
  2. Selects item(s) from inventory via ox_lib menu
  3. Specifies quantities for each item
  4. Option to add multiple different items
  5. Confirms selection and watches burial animation
  6. Dirt pile spawns at location
  7. Items removed from inventory and saved to database

:gear: 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

:scroll:Finding Items:

  1. Player walks near a buried location
  2. 3D text prompt appears: β€œ[E] Dig Up Buried Items”
  3. Dirt pile visible as visual indicator
  4. Press E to start digging animation
  5. Progress bar shows digging progress
  6. Items added to inventory automatically
  7. Dirt pile removed and database updated

:lock: Security Features

  • Player Identification - Tracks who buried items
  • Synchronized State - Prevents duplication glitches
  • Database Validation - Server-side item verification

:package: Dependencies

  • oxmysql - Database operations
  • ox_lib - Menus and progress bars
  • ESX or QBCore - Framework (choose one)

:coffee: Video Preview:

:shopping_cart: Tebex Link [HERE]


[MY OTHER RELEASES]
:gift: Battle Royale
:gift: Prop Hunt
:gift: Bedwars
:gift: Gym + Skills Script
:gift: Weapon Throwing
:gift: Kill Effects
:gift: Temperature/Immunity
:gift: Dungeons
:gift: Team Deathmatch
:gift: Hunger Games

Code is accessible Yes
Subscription-based No
Lines (approximately) ~600
Requirements ESX/QBCore/ox_lib
Support Yes
1 Like