Skip to content

πŸͺ™ FX-GOLDSEARCH ​

Advanced gold panning system for RedM with zone-based rewards, prop placement, water mechanics, and full framework compatibility.


πŸ“¦ INSTALLATION ​

bash
ensure fx-goldsearch

β€’ Place the script inside resources/fx-goldsearch β€’ Add ensure fx-goldsearch to your server.cfg β€’ Restart your server β€’ Make sure PolyZone is started before this script


βš™οΈ DEPENDENCIES ​

lua
dependencies {
    'PolyZone'
}

β€’ Required for zone detection system β€’ Handles gold search areas and restrictions β€’ Script will not work without it


πŸ“¦ VORP ITEM INSTALL ​

sql
INSERT INTO items (...)
VALUES
('bucket', 'Bucket', ...),
('bucketfull', 'Bucket Full', ...),
('goldnugget', 'Gold Nugget', ...),
('goldring', 'Gold Ring', ...),
('goldtable', 'Gold Search Table', ...),
('salt', 'Salt', ...)

β€’ Required items for gold searching β€’ bucket β†’ used to collect water β€’ bucketfull β†’ required to start searching β€’ goldtable β†’ used to place search table β€’ goldnugget / goldring β†’ rewards


πŸ“¦ RSG ITEM INSTALL ​

lua
bucket        = { name = 'bucket', label = 'Bucket', ... },
goldtable     = { name = 'goldtable', label = 'Gold Search Table', ... },
goldnugget    = { name = 'goldnugget', label = 'Gold Nugget', ... },

β€’ Required if using RSG framework β€’ All items must be usable β€’ Names must match config


βš™οΈ BASIC CONFIG ​

lua
Config.Language = "en"
Config.UseTarget = false
Config.WaterTime = 60 * 1000
Config.ZoneNotify = true

β€’ Language β†’ system language β€’ UseTarget β†’ enables target system (RSG) β€’ WaterTime β†’ how long water lasts β€’ ZoneNotify β†’ shows enter/exit notifications


🎯 ITEM CONFIG ​

lua
Config.Items = {
    BucketItem = "bucket",
    BucketFull = "bucketfull",
    TableItem = "goldtable"
}

β€’ Defines required items β€’ Must match database item names β€’ Used for all core interactions


🧱 TABLE SYSTEM ​

lua
Config.MaximumCreateTable = 3
Config.PropSpawnDistance = 40
Config.PropInteractionDistance = 1.5

β€’ Limits how many tables a player can place β€’ Controls visibility distance β€’ Controls interaction range


⛏️ GOLD SEARCH SYSTEM ​

lua
Config.ProgressSettings = {
    bucketfill = 5000,
    placing = 5000,
    fillwater = 3000,
    search = 5000,
}

β€’ Controls action durations β€’ bucketfill β†’ filling water β€’ placing β†’ placing table β€’ search β†’ searching for gold


🌍 GLOBAL REWARD SYSTEM ​

lua
Config.Rewards = {
    {
        Rewards = {
            [1] = {
                chance = 45,
                items = {
                    {item = "goldnugget", count = 1}
                }
            }
        }
    }
}

β€’ Defines reward chances β€’ chance β†’ probability percentage β€’ items β†’ rewards list β€’ Supports multiple reward tiers


πŸ“ ZONE SYSTEM ​

lua
Config.SearchLocation = {
    {
        name = "Gold Search Zone",
        zones = {
            vector2(...),
        },
        minz = 72.0,
        maxz = 78.0,
    }
}

β€’ Defines restricted gold search areas β€’ Uses PolyZone system β€’ Only allows table placement inside zones


🚫 TOWN RESTRICTION ​

lua
Config.BlacklistTowns = {
    ["valentine"] = 459833523,
}

β€’ Prevents placing tables near towns β€’ Avoids exploitation in safe zones


βš™οΈ TABLE PERMISSIONS ​

lua
Config.RemoveTableSetting = 1
Config.RemoveWhitelistJobs = {
    ["sheriff"] = true,
}

β€’ Controls who can remove tables β€’ 0 β†’ everyone β€’ 1 β†’ owner + whitelist jobs β€’ 2 β†’ owner only


πŸ”” NOTIFY SYSTEM ​

lua
Notify({
  text = "Searching...",
  type = "success"
})

β€’ Framework-based notification system β€’ Supports VORP / RSG / REDEMRP β€’ Fully customizable


βš™οΈ SERVER CONFIG ​

lua
SV_Config.Webhook = {
    url = "",
    logo = "",
    banner = "",
}

β€’ Used for logging system β€’ Optional webhook integration


πŸ“ DATA SYSTEM ​

json
spawnProp.json

β€’ Stores placed gold tables β€’ Data is saved per player β€’ Used for persistence after restart


⚠️ IMPORTANT NOTES ​

β€’ PolyZone must be installed β€’ Items must exist in database β€’ spawnProp.json must not be deleted β€’ TableItem must match config β€’ Zones must be defined if PlaceAllMap = false


🚨 COMMON MISTAKES ​

β€’ Missing PolyZone β€’ Wrong item names β€’ Missing items in database β€’ Not defining zones β€’ Table not spawning due to limits


🏁 SUMMARY ​

FX-Goldsearch provides:

β€’ Advanced gold panning system β€’ Zone-based gameplay β€’ Dynamic reward system β€’ Prop placement system β€’ Full framework compatibility


Β© Fixitfy Development

⚑ Premium RedM scripts crafted with performance & quality in mind.