RX Fishing Configuration

RX Fishing splits its settings over five files:

FileWhat it holds
config.luaEverything on this page: language, access, framework, the rod, bites and the fight, legendaries, fishmongers, the market, orders, good water, XP, controls
config_fish.luaRarity, stars, baits and lures, reels, species, legendaries. See Fish & Tackle
config_progress.luaLevels, perks, gear parts, the book’s command. See Progression & Tournaments
config_social.luaLeaderboards, tournaments, badges. See Progression & Tournaments
config_world.luaBoats and traps. See Boats & Traps

Every setting is checked when the resource starts. A value out of range, a range the wrong way round, an unknown species or bait, or a legendary placed in water that is not on the map is named in the console with its file and setting, and listed on the admin panel’s status page. Restart rx_fishing after changing a config file.

[rx_fishing] problem  config.lua  Config.Fishing.biteDelay: min is above max (got { 20000, 6000 })
[rx_fishing] warning  config.lua  Config.Market.trending: asks for 99 wanted species, there are only 15

A problem will not work as written; a warning works but is probably not what you meant.

Language

Lua
Config.Locale = 'en'
Config.FallbackLocale = 'en'
Config.Debug = false
SettingDefaultBehaviour
Locale'en'en, tr, de, fr, es, or pt (Brazilian Portuguese).
FallbackLocale'en'Any text missing from a translation shows in this language instead of blank.
DebugfalsePrints bridge, item, and store decisions to the console. Keep it off on a live server.

Fish, bait, perk, and other names in the config files are tables such as label = { en = 'Bluegill', tr = 'Güneş Balığı' }. A language left out of a label shows the English name.

Adding a language

  1. Copy locales/en.lua to locales/xx.lua, and change Locales.en = { to Locales.xx = { and ui_lang = 'en' to ui_lang = 'xx'.
  2. Translate the texts between the quotes. Keep every %s, %d, %.1f, and %.2f in the same order as in English. In keys starting with ui_ a percent sign is written %, in the others %%. An apostrophe inside a text is written \'.
  3. Optionally add xx = '...' to the label tables in the config files.
  4. Set Config.Locale = 'xx' and restart. The config check reports it if locales/xx.lua is not found.

Admin access

Lua
Config.AdminCommand = 'fishadmin'

Config.Admin = {
    mode = 'auto',
    rsgPermission = { 'admin', 'god' },
    vorpGroups = { 'admin', 'superadmin', 'moderator' },
    acePermission = 'rx_fishing.admin',
    allowCommandAce = true,
    allowedIdentifiers = {}
}
SettingDefaultBehaviour
AdminCommand'fishadmin'Opens the admin panel. From the server console it prints a status line.
mode'auto'auto checks the framework first, then the ACE and allowedIdentifiers. rsg, vorp, ace, or list uses only that source.
rsgPermissionadmin, godRSG permissions treated as admin. Checked as ACE names, not groups.
vorpGroupsadmin, superadmin, moderatorVORP groups treated as admin.
acePermission'rx_fishing.admin'The resource’s own ACE.
allowCommandAcetrueIn auto and ace mode, anyone with the command ACE is an admin.
allowedIdentifiersEmptySpecific identifiers with access.

Framework and money

Lua
Config.Framework = {
    adapter = 'auto',
    rsgResource = 'rsg-core',
    rsgInventory = 'rsg-inventory',
    vorpResource = 'vorp_core',
    vorpInventory = 'vorp_inventory'
}

Config.Economy = {
    account = 'cash'
}
SettingDefaultBehaviour
adapter'auto'auto picks RSG when rsg-core runs and VORP when vorp_core runs, otherwise waits for an external bridge. Also rsg, vorp, or external.
rsgResource, rsgInventory, vorpResource, vorpInventoryStock namesChange only if your framework folders are renamed.
account'cash'The account fishmongers pay into and take from. RSG: any PlayerData.money key such as cash, bank, bloodmoney. VORP: cash, gold, or rol.

Keepnet

A keepnet holds a whole trip in one inventory slot. The fish inside live on the server under the net’s serial, so the net can change hands and the catch goes with it.

Lua
Config.Keepnet = {
    enabled = true,
    item = 'rx_keepnet',
    capacity = 20,
    maxWeight = 25.0,
    expireDays = 30,
    price = 12.00
}
SettingDefaultBehaviour
capacity20Fish per net.
maxWeight25.0Kilograms per net; 0 removes the cap. Inventories weigh the net by its type, so this is what keeps it honest.
expireDays30A net nobody opens for this long is emptied on the server. The item keeps working.
price12.00Fishmonger price; 0 means not sold.

The rod

The rod is the framework’s own WEAPON_FISHINGROD, drawn the usual way, so framework weapon checks never take it away. Reels and parts sit on the rod, not in the satchel.

Lua
Config.Rod = {
    item = 'weapon_fishingrod',
    bare = { power = 0.85, control = 0.85, sensitivity = 0.9 },
    fishWithoutReel = true
}
SettingDefaultBehaviour
item'weapon_fishingrod'Checked on the server when the rod comes out; skipped when the inventory keeps weapons apart (VORP).
bare0.85 / 0.85 / 0.9How a rod with no reel fishes: power, control, sensitivity. Reels are in Fish & Tackle.
fishWithoutReeltruefalse means no reel, no fishing.

Bites

Every bite is decided on the server from the water, the bait, the hour, and the species’ rarity. The client plays it out, and the server checks the timing before anything is given.

Lua
Config.Fishing = {
    biteDelay = { 6000, 20000 },
    nibbles = { 0, 2 },
    hookWindow = 1300,
    missStealsBait = true,
    unknownWater = 'pond',
    networkedFish = true,
    minCastDistance = 6.0,
    farCast = 30.0,
    farBias = 0.35,
    maxCastDistance = 45.0,
    castCooldown = 1500,
    minFightSpeed = 0.8
}
SettingDefaultBehaviour
biteDelay6000–20000Milliseconds from the bobber settling to the bite.
nibbles0–2Fake nibbles before the real bite. Hooking on a nibble spooks the fish.
hookWindow1300Milliseconds to hook the real bite. Reel sensitivity stretches it, a strong fish shortens it.
missStealsBaittrueMissing the window loses the bait. Lures are never stolen.
unknownWater'pond'Habitat used for water the map does not name; false allows no fishing there.
networkedFishtrueEveryone nearby sees the hooked fish. Turn off on servers with strict entity lockdown.
minCastDistance6.0Metres: nothing bites right at the bank.
farCast, farBias30.0, 0.35The further out the bobber lands, the bigger the fish, up to farBias at farCast metres.
maxCastDistance45.0Server check: metres between angler and bobber.
castCooldown1500Server check: milliseconds between casts.
minFightSpeed0.8Server check: a catch must take at least this share of the fastest honest fight.

The fight

Reeling raises the tension and letting go drops it; the line comes in best while the needle sits in the green band. The fish rests, runs, or (the stronger ones) charges:

  • Rest: reel and keep the needle in the green.
  • Run: let go and steer against it with A or D. Reeling into a run snaps the line.
  • Charge: reel. A charge drops the tension, and a slack line lets the hook come loose.

A fish tires on its moves and while the tension stays in the band; a tired fish runs less and comes in faster.

Lua
Config.Fight = {
    reelUp = 0.5,
    letGo = 0.4,
    runPull = 0.45,
    chargeDrop = 0.5,
    safeBand = { 0.3, 0.7 },
    reelSpeed = 1.3,
    runSpeed = 1.1,
    chargeChance = 0.3,
    slackTime = 1500,
    slackEscape = 0.5,
    snapGrace = 500,
    maxExtraLine = 18.0,
    landDistance = 4.0,
    bolt = { base = 6.0, perFight = 2.5, perSize = 4.0 },
    jumps = true,
    camera = true
}
SettingDefaultBehaviour
reelUp / letGo0.5 / 0.4Tension gained per second while reeling / lost while not.
runPull / chargeDrop0.45 / 0.5Tension per second a run adds / a charge removes.
safeBand0.3–0.7The green band. Reel control widens it.
reelSpeed / runSpeed1.3 / 1.1Metres per second the line comes in / a fish takes out.
chargeChance0.3Share of a strong fish’s moves that are charges.
slackTime, slackEscape1500, 0.5Milliseconds of slack before the hook can come loose, and the chance it does.
snapGrace500Milliseconds at full tension before the line snaps.
maxExtraLine18.0Metres a fish can take past where it bit.
landDistance4.0Metres of line left when the fish is in hand.
bolt6 + 2.5×fight + 4×sizeMetres a hooked fish first bolts for open water.
jumpstrueJumping species leap on some runs; let go while it is in the air.
cameratrueOver-the-shoulder fight camera; the mouse swings it.

Sound

Lua
Config.Sound = {
    enabled = true,
    volume = 0.6
}

Reel ratchet, singing drag, hook set, splashes, and a snapping line, generated in the page with no sound files.

Time and weather

Species prefer parts of the day and kinds of weather (set per species in Fish & Tackle), and bites come quicker at dawn, dusk, and in rain.

Lua
Config.Conditions = {
    source = 'auto',
    weathersync = 'weathersync',
    hours = { dawn = 5, day = 8, dusk = 18, night = 21 },
    biteDelay = {
        dawn = 0.8, day = 1.0, dusk = 0.8, night = 1.1,
        clear = 1.0, overcast = 0.9, rain = 0.8, storm = 0.75, cold = 1.3
    }
}
SettingDefaultBehaviour
source'auto'auto reads weathersync when it runs, otherwise the angler’s game. Also weathersync or client.
hours5 / 8 / 18 / 21Game hour each part of the day starts.
biteDelaySee aboveMultiplier on Config.Fishing.biteDelay by time and weather; below 1.0 is faster.

Legendary fish

Nine legendaries each live in their own water and take only a special lure, some only at certain hours or in certain weather. The list is in Fish & Tackle.

Lua
Config.Legendary = {
    cooldownMinutes = 120,
    announce = false,
    signChance = 0.15
}
SettingDefaultBehaviour
cooldownMinutes120One of each swims at a time; once landed it is gone for everyone this long.
announcefalseTell the whole server when one is landed.
signChance0.15Chance of a sign of it when fishing its water with its lure at the wrong hour or weather. 0 = never.

Fishmongers

A fishmonger buys the catch, sells tackle, repairs reels, hands out the day’s orders, sells rumors about legendaries, and rents boats when a dock is near. Admins place them from the admin panel; locations adds extra ones in the config.

Lua
Config.Shops = {
    enabled = true,
    locations = {},
    model = 's_m_m_unibutchers_01',
    models = { 's_m_m_unibutchers_01', 'cs_fishcollector', 'a_m_m_sddockforeman_01', 'a_m_m_nbxdockworkers_01' },
    scenario = 'WORLD_HUMAN_WRITE_NOTEBOOK',
    talkDistance = 2.5,
    spawnDistance = 80.0,
    blip = { show = true, sprite = 'blip_shop_tackle', scale = 0.2 },
    maxAmount = 50
}
SettingDefaultBehaviour
locationsEmptyExtra fishmongers, as { label = 'Lagras Tackle', coords = vector4(x, y, z, heading), model = 's_m_m_unibutchers_01' }.
model, modelsButcher, plus threeThe default townsman and the ones the admin panel offers.
scenarioWriting in a notebookWhat he does while waiting; false to stand.
talkDistance2.5Metres to talk.
spawnDistance80.0The townsman only exists for players this close.
blipTackle shop iconMap blip; show = false hides it.
maxAmount50Most bait bought at once.

Market

Every fishmonger shares one market. Each fish of a species sold lowers that species’ price for everyone, and the price climbs back over time. A few species are wanted each day and pay more. Legendaries always fetch their full price.

Lua
Config.Market = {
    dynamic = true,
    dropPerFish = 0.02,
    minMultiplier = 0.55,
    recoverPerHour = 0.08,
    trending = 2,
    trendingBonus = 0.30,
    buysLegendaries = true,
    repairShare = 0.45,
    rumorPrice = 10.00
}
SettingDefaultBehaviour
dynamictruefalse keeps prices fixed.
dropPerFish0.02Share of the price lost per fish sold.
minMultiplier0.55Prices never drop below this share.
recoverPerHour0.08Share won back per real hour.
trending, trendingBonus2, 0.30Wanted species per day, and how much more they pay.
buysLegendariestrueFishmongers buy legendary fish.
repairShare0.45A full reel repair costs this share of the reel’s price.
rumorPrice10.00Price of a rumor about a legendary in the water.

Daily orders

Three orders a day, the same for every angler, renewed at resetHour on the server clock. Each angler fills each one once a day, and the smallest qualifying fish are taken so the best ones stay with the angler.

Lua
Config.Orders = {
    enabled = true,
    resetHour = 6,
    xp = 25,
    templates = {
        { rarity = { 'common' }, count = { 3, 5 }, bonus = 1.4 },
        { rarity = { 'uncommon' }, count = { 2, 2 }, minStars = 2, bonus = 1.7 },
        { rarity = { 'rare', 'epic' }, count = { 1, 1 }, minSize = 0.5, bonus = 2.0 }
    }
}
Template fieldBehaviour
rarityA species of these tiers is picked.
countHow many fish, random in the range.
minStarsAt least this quality.
minSizeAt least this far up the species’ weight range (0–1).
bonusReward: the fish’s price times this.

Good water

Spots where a species, or every fish, bites more often and runs bigger. Admins place them on the water from the admin panel; Config.Hotspots adds extra ones.

Lua
Config.Hotspots = {}

Config.Hotspot = {
    bonus = 3.0,
    sizeBias = 0.2,
    defaultRadius = 20.0,
    maxRadius = 80.0
}
SettingDefaultBehaviour
HotspotsEmptyExtra spots, as { label = 'Sturgeon Hole', coords = vector3(x, y, z), radius = 25.0, species = 'lakesturgeon' }. species is a species key or 'any'.
bonus3.0Species chance multiplier inside a spot.
sizeBias0.2Weight bias inside a spot.
defaultRadius, maxRadius20.0, 80.0Metres.

XP and announcements

Lua
Config.Xp = {
    common = 5, uncommon = 10, rare = 20, epic = 40, legendary = 150,
    sizeBonus = 1.0,
    releaseBonus = 0.5
}

Config.Announce = {
    serverRecords = false,
    minRarity = 'uncommon'
}

Config.Notify = 'toast'
SettingDefaultBehaviour
Xp per rarity5 to 150XP per fish.
sizeBonus1.0Up to +100% for the biggest fish of a species.
releaseBonus0.5+50% for letting the fish go.
Announce.serverRecordsfalseTell the whole server when a record is set.
Announce.minRarity'uncommon'Only records of this rarity or rarer are announced.
Notify'toast''toast' for on-screen notifications, 'chat' for chat lines.

Storage and rate limits

Angler profiles, server records, keepnets, and traps live in the resource’s key-value store. No database is needed.

Lua
Config.Store = {
    saveDelayMs = 2000
}

Config.RateLimits = {
    default = { 8, 1000 },
    useItem = { 4, 1000 },
    fishing = { 6, 1000 },
    ui = { 12, 1000 }
}

saveDelayMs gathers changes for this long before writing them. Each rate limit is { calls, windowMs } per player for that group of net events.

Controls

Each action listens to the fishing minigame input first and a general input after it, so it works in whichever input context the rod leaves active. The first hash is the one the prompt shows.

Lua
Config.Controls = {
    hook       = { 0xA1CD103A, 0x07CE1E61 },
    reel       = { 0xA303F462, 0xFBD7B3E6, 0xD9D0E1C0 },
    steerLeft  = { 0x7065027D },
    steerRight = { 0xB4E465B4 },
    keep       = { 0x52C5C34A, 0xCEFD9220 },
    release    = { 0xF14FD435, 0x424BD2D2 },
    giveUp     = { 0x8FFC75D6 },
    talk       = { 0xCEFD9220 },
    gear       = { 0x2FA915F5, 0xE30CD707 },
    pickup     = { 0xE30CD707, 0x2FA915F5 }
}
ActionDefault key
hookLeft mouse
reelSpace
steerLeft / steerRightA / D
keep / releaseE / F
giveUpShift
talkE
gearR
pickupR (traps)