FiveM Mining Script: Quarry Mining Job
Strike ore, ride the conveyor, haul, smelt and sell, and calibrate everything in game with /mina_admin.
$29.99 · one-time purchase · QBCore, Qbox, ESX and standalone
Requires: ox_lib, oxmysql, rd_bridge. Protected with Cfx.re Asset Escrow; config, locales and SQL stay editable.


A complete animated mining job: aim-to-crit pickaxe, ore carrying, a conveyor powered by a generator with server-validated minigames, truck rental and cargo physics, smelter with cooling minigame, public and hidden buyers, optional XP. Includes the in-game calibration menu /mina_admin. English and Spanish. v1.0, first release.
Needs the free rd_bridge resource, which adapts it to your framework and inventory.
⛏️ From the first swing to the last ingot sold.
A complete, animated quarry job. Strike ore nodes, carry the rocks to a conveyor powered by a generator, load a truck, smelt and cool the ingots and sell them to public or hidden buyers. And when your map needs it, calibrate everything in game with /mina_admin.
Why you'll want it
- 🎯 Hit the glowing weak point: aim well and rocks break faster, while the server decides crits, ore type and rock count.
- 💎 5 ores: coal, iron, copper, quartz and gold, with weights, amounts and prices you can change. Nodes run out and respawn.
- 🏭 A real production line: a generator-powered conveyor, a truck loaded with physics-piled cargo that spills if it tips, and a smelter with a cooling minigame.
- 🕵️ Hidden buyers: one per ore, paying a multiplier (x2 by default). The public buyer gives rumours with a direction and an approximate distance, never coordinates.
- 🧭 Calibrate in game: /mina_admin places the belt, truck zone, generator, smelter and dig points with a live ghost, and prints a paste-ready config.lua block.
- 📈 Optional XP and levels, job restriction and locker uniform. Needs ox_lib, oxmysql and rd_bridge; ox_inventory recommended.
First release (v1.0): code-reviewed and lint-checked. Default coordinates are approximate: adjust them to your map with /mina_admin. Report any issue and we fix it.
What you get
- The rd_mining resource with NUI panels for the ore buyer, the smelter, the generator and the minigames (English and Spanish).
- An editable config.lua, plus config_server.lua with the hidden buyers' coordinates (server only).
- Item files for ox_inventory and qb-core with item icons included, SQL file and both locale files.
- The in-game calibration menu /mina_admin for admins.
Features
Mining and carrying
- Take a pickaxe from the locker, equip it and strike the ore nodes. Aim at the glowing weak point to break rocks faster; the server decides crits, ore type and rock count.
- 5 ores (coal, iron, copper, quartz and gold) with weights, amounts and prices you can change. Nodes run out and respawn.
- Carry up to 3 rocks of the same ore and put them on the conveyor belt.
Conveyor, generator and truck
- The belt works only if its generator has fuel and is started. Start-up and refuelling minigames are validated by the server; fuel comes from a gas-station jerrycan or the rd_fuel_can item.
- Rocks ride the belt and drop into a truck parked in reverse under its end. Cargo is piled with physics and spills if the truck tips over.
- Rent the truck by the hour from the foreman (limits per rental and in total are configurable). Keys and fuel go through rd_bridge.
Smelter, cooling and sales
- Unload at the smelter with a pallet and forklift animation, wait for the batch smelt, cool the ingots with a minigame and collect them.
- Sell at the public buyer, or find hidden buyers: one per ore, they only buy their ore and pay a multiplier (x2 by default). The public buyer can give rumours with a direction and an approximate distance, never coordinates.
- Smelter queue and generator fuel persist in the database.
Progress and control
- Optional XP and levels with crit chance, extra yield and a better sale price. Optional job restriction, locker uniform and Discord webhook.
- Rate limits on every callback, and truck registration checks the rental, the plate and the network owner.
Calibrate in game: /mina_admin
Admins open an ox_lib menu with tools to place the belt (start, truck, tilt), the truck drop zone (belt end, bed height, pad size), the generator and its switch, the smelter points, the foreman, locker and public buyer, the dig points (add, remove, reset) and the pickaxe and carried-rock grips. Each placement shows a translucent ghost and a marker. Arrows move, PgUp and PgDn change height, Q and E rotate, F snaps to you, Shift and Ctrl are fast and fine, Enter saves and Backspace cancels (grips: TAB switches between move and rotate). On save, the server validates and persists the change in rd_mining_overrides, so it applies after restarts and live to everyone, and the ready-to-paste config.lua block is printed to F8 and copied to your clipboard. Reset all restores config.lua. Extra belts, hidden buyers and map blips are still edited in the config files.
How it works
Strike ore, pick up the rock and carry it to the belt. Fuel and start the generator, then the belt carries the rocks to the truck. Drive the rented truck to the smelter, unload, wait for the batch, cool the ingots and collect them. Sell them to the public buyer, or follow a rumour to a hidden buyer that pays more.
Requirements
- Required: ox_lib, oxmysql and rd_bridge (rd_bridge must start first).
- Optional: ox_inventory (recommended), ox_target or qb-target, and clothing, fuel and keys resources supported by rd_bridge.
- Optional: floating holograms with rd_holo, sold separately. By default a sober info card and ground ring are used.
Install in 5 steps
- 1. Put rd_mining in your resources folder; ox_lib, oxmysql and rd_bridge must start before it.
- 2. Add the items from items/ox_inventory.lua or items/qb-core.lua and copy items/images to your inventory images folder.
- 3. The tables rd_mining_players, rd_mining_state and rd_mining_overrides are created automatically, or import sql/install.sql.
- 4. ensure rd_bridge, then ensure rd_mining in server.cfg.
- 5. Go to the quarry and adjust Config.Site and Config.Smelter to your map with /mina_pos and /mina_admin. The default coordinates are approximate.
Compatibility
QBCore, Qbox, ESX and standalone through rd_bridge. Adapters are reviewed against the public documentation of each resource. Props, vehicles and peds are vanilla GTA V; audio is generated in the browser. Protected with Cfx.re Asset Escrow; config.lua, config_server.lua, locales, SQL and items stay editable.
FAQ and good to know
The default coordinates are approximate. What do I do?
Go to the quarry, use /mina_pos to read your position and /mina_admin to move the belt, truck zone, generator, smelter points and dig points with a live ghost. Truck bed measures are estimates: tune Config.Site.truckDims and endOffset if rocks fall outside the truck.
The belt does not move.
The generator needs fuel (a gas-station jerrycan or rd_fuel_can) and both the generator and the belt must be switched on. You can disable the generator with Config.Generator.enabled = false so the belt always runs.
Does it work without an inventory?
Item checks go through rd_bridge. Without a supported inventory the job cannot hand out tools or ingots, so use ox_inventory or another inventory supported by the bridge.
Is there a uniform?
It is disabled by default. Set the clothing indices of your pack in Config.Uniform and enable it.
Is it ready for production?
It is a first release. It has been syntax-checked and code-reviewed, but coordinates, truck bed measures, animations, prop attachment and the bridge calls (info cards, clothing, keys) may need tuning on your server. Test it before going live and tell us what you find.