RX Fishing Installation

RX Fishing replaces the stock fishing on RSG and VORP with the native rod, server-decided catches, legendary fish, fishmongers with a shared market, angler levels, tournaments, boats, and traps.

The resource detects RSG or VORP on its own and stores everything in the resource’s own key-value store, so no database tables are needed.

Requirements

RequirementWhy it is needed
A RedM server with OneSyncHooked fish and rented boats are networked entities.
rsg-core or vorp_coreMoney, inventory, usable items, and identity. Other frameworks can connect through exports, see Other frameworks.
weathersyncOptional. When running, time of day and weather are read on the server so every angler fishes the same conditions.

1. Place the resource

Extract the resource into your server’s resources directory. The folder name is rx_fishing.

2. Stop the stock fishing resource

rsg-fishing and vorp_fishing drive the same native rod and register the same bait items. Remove them from server.cfg before starting RX Fishing, or both will respond to the rod at once.

3. Add it to server.cfg

RX Fishing may start before your inventory; it attaches when the inventory comes up.

server.cfg
ensure rsg-core
ensure rsg-inventory
ensure rx_fishing

4. Add the items

The resource ships the item definitions and pictures in its install folder: one item per species and legendary, reels, line, hook, and bobber parts, the keepnet, traps, and tournament cups.

1. Paste install/rsg_items.lua into rsg-core/shared/items.lua, inside RSGShared.Items.
2. Copy install/images/*.png to rsg-inventory/html/images/.
3. Restart the whole server. RSG reads its item list only at start.

The bait and lure items are the game’s own props (p_baitbread01x, p_finisdfishlure01x and so on). RSG already ships them; on VORP the SQL file adds them, and you can skip that block if your server has them.

Keep fish and reels unique. Every fish carries its own weight, length, and angler, and every reel its own wear.

Items missing from your inventory are named in the server console when the resource starts, and on the admin panel’s status page.

5. Grant admin access

Anyone allowed to run every server command (the command ACE that a stock server.cfg gives group.admin) is detected automatically, as are RSG and VORP admins. The resource’s own ACE also works:

server.cfg
add_ace group.admin rx_fishing.admin allow

See Configuration to limit access to one permission source.

6. Place a fishmonger

Players have nowhere to sell their catch until at least one fishmonger stands somewhere.

  1. Run /fishadmin and open Fishmongers.
  2. Type a name, pick the townsman, and stand where he should stand, facing the way he should face.
  3. Click Place him where I stand.

To rent boats from him, place a dock on the water within 80 metres from the same page. See Admin Panel for the full flow.

7. Test the loop

  1. Draw the fishing rod as usual, put bait on the hook by using a bait item, and cast with right mouse and left mouse.
  2. Hook when the bobber goes under with left mouse, then reel with Space and pull against the fish’s runs with A and D.
  3. Keep the fish with E and sell it to the fishmonger with E at his counter.
  4. Open the angler’s book with /fishbook to see the XP and the journal entry.

Controls

KeyAction
Framework’s rodDraw or holster the rod as usual
Use a bait itemPut it on the hook
Use a reel, line, hook, or bobber itemFit it to the rod; the part in its place returns to the satchel
Right mouse + left mouseAim and cast
Left mouseHook when the bobber goes under
SpaceReel
A / DPull the rod left or right against the fish’s run
ShiftReel the line in or let the fish go
E / FKeep or release the fish in hand
R, rod in hand, line inOpen the rod’s gear
E, at a fishmongerTalk (the line must be in)
Use a keepnetOpen it
Use a trapSet it in the shallow water in front of you
E / R, at a trapEmpty or bait it / pick it up
/fishbookThe angler’s book
/fishadminThe admin panel

Every key is a list of control hashes in Config.Controls.

Other frameworks

Set Config.Framework.adapter = 'external' and register bridges from another resource after rx_fishing has started:

Lua
exports.rx_fishing:RegisterEconomyBridge({
    removeMoney = function(source, amount, reason) return true end,
    addMoney = function(source, amount, reason) return true end,
    getBalance = function(source) return 0 end
})

exports.rx_fishing:RegisterInventoryBridge({
    add = function(source, item, amount, metadata) end,
    remove = function(source, item, amount, ref) end,
    count = function(source, item) end,
    canCarry = function(source, item, amount) end,
    list = function(source, item) end,
    get = function(source, item, ref) end,
    setMetadata = function(source, item, ref, metadata) end,
    registerUsable = function(item, handler) end
})

exports.rx_fishing:RegisterIdentityBridge(function(source) return 'Name' end)
exports.rx_fishing:RegisterIdentifierBridge(function(source) return 'charid' end)
exports.rx_fishing:RegisterAdminBridge(function(source) return false end)

list returns { { ref, name, amount, metadata } }, and registerUsable calls handler(source, entry) when the item is used.