This script protected escrow system
[Discord]
izzy-miner β Mining Job & Level System for FiveM
π¦ Overview
* Mine ore, collect it in your inventory, sell at the boss NPC β earn cash and XP
* Works with ESX, QBCore, and QBox (auto-detect)
* Inventory: ox, ESX, QB, qs, or custom (Config.Inventory.Type)
* Progress saved in SQL β level, XP, stats, and tasks stay when you leave and come back
* Mining area and boss show on the map as blips (Config.Settings.enableBlips)
π€ Profile area (top of menu)
* Your character / player name on screen
* Steam profile photo when the server has a Steam API key β otherwise a default profile image
* Level, current XP, and progress bar
* Your active pickaxe tier (Tier 1β5)
βοΈ How mining works
* Enter a mining zone (Config.MiningAreas β e.g. Davis Quartz, ~55 m radius)
* Equip your pickaxe (pickaxe item / use)
* Right-click a rock β the nearest one in range is picked (enableRightClickMining, miningRange 3.5 m)
* While holding a pickaxe in the zone, targeting is limited (disableTargetingWithPickaxe)
* Optional: auto-equip pickaxe near rocks (autoEquipPickaxe β off by default in config)
πͺ¨ Ores & levels
* 6 ore types: coal, copper, iron, silver, gold, diamond
* Each rock has health, a colored model, and a minimum miner level (1β15)
* Rocks shrink as you hit them (enableRockScaling)
* Nearby: ore name + health bar (showMineralInfo)
* Damage numbers on hits (showDamageNumbers)
* Critical hit chance depends on your pickaxe (2%β12% across the 5 pickaxes)
* Broken rocks go to inventory; rocks respawn (45β300 s per spawn in config)
βοΈ Pickaxes (5 tiers)
* Wooden β Stone β Iron β Gold β Diamond
* Stronger pickaxe = fewer hits, higher crit chance
* Each has price, required level, and rarity color (common β mythical)
* Upgrade tab β step up to the next pickaxe (cash + level required)
π Level system (max 15)
* XP per hit and when a rock breaks
* Level-up cash reward (scales with level; big payout at level 15)
* Extra item rewards on some levels (e.g. water + cash at level 1 β from config)
* Too low level for a rock β you get a clear warning and canβt mine it
π₯οΈ Miner menu (3 tabs)
* Walk up to the boss NPC β [E] Talk
* Info: total ore mined, time as a miner, money earned, current pickaxe tier
* Daily and weekly tasks with progress; finished task rewards claim automatically
* Shop: buy pickaxes or sell ores from inventory (search + Buy / Sellable)
* Upgrade: see all pickaxes, current one highlighted, tap to upgrade
* Close with ESC
π Tasks (from config)
* Daily: sell 25 coal, sell 40 ores, 150 pickaxe hits
* Weekly: sell 8 rare ores (gold/diamond), sell 200 ores
* Rewards: cash + XP (e.g. $10,000 + 200 XP β per task in config)
π° Selling & prices
* Coal, copper, iron, silver, gold, diamond β each has minβmax sell range in config
* Shop sells all 5 pickaxes ($1,200 β $15,000)
π Language
* Config.Language β tr / en option
* All menu text in Config.UITexts, in-game notifications in Config.Messages β edit those tables for Turkish or other wording
π Discord logging (server owners)
* server/config.lua β webhooks for mining, sales, collection, level/XP, shop, upgrades, admin, errors, disconnect
* Steam avatar settings in the same file (ServerConfig.Steam)
π οΈ Setup (server owners)
* shared/config.lua β areas, rocks, pickaxes, tasks, levels, blips, performance
* izzy_miner.sql β database tables
* server/config.lua β webhooks and Steam API
* Custom ore props: komur, bakir, demir, altin, elmas models