A modern and versatile digging script for FiveM servers. This script utilizes ox_lib and ox_inventory to provide a smooth user experience, featuring item durability, minigames, and accurate ground detection.
- Accurate Ground Detection: Players can only dig on specific terrain materials (e.g., sand). Materials can be easily added or modified in the config.
- Minigame & Animations: Initiating a dig requires a successful skill check (
ox_lib). Includes proper animations and shovel props. - Shovel Durability: The shovel's durability decreases with each dig and will eventually break (utilizes
ox_inventorymetadata). - Dynamic Loot Table: Easily configurable loot chances, minimum, and maximum amounts.
- Discord Logs: Built-in support for Discord webhooks to log found items, broken shovels, and full inventories.
- Locales: Built-in support for English (
en) and Finnish (fi).
Ensure you have the following resources installed and started before using this script:
- Download this script and place it in your
resourcesfolder. - Make sure the folder is named
v-digging - Add the recourse to your server.cfg:
ensure v-digging - Add the shovel item to your
ox_inventory/data/items.lua. Since the script uses an export to trigger the item, it should look like this:
['shovel'] = {
label = 'Shovel',
weight = 1000,
stack = false,
consume = 0,
client = {
export = 'v-digging.useShovel'
}
}- Configure
config.luato your liking and set your Discord Webhook inserver/main.lua.
Discord: https://discord.gg/V5tqB6TnfX