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
| Requirement | Why it is needed |
|---|---|
| A RedM server with OneSync | Hooked fish and rented boats are networked entities. |
rsg-core or vorp_core | Money, inventory, usable items, and identity. Other frameworks can connect through exports, see Other frameworks. |
weathersync | Optional. 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.
ensure rsg-core
ensure rsg-inventory
ensure rx_fishing4. 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:
add_ace group.admin rx_fishing.admin allowSee 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.
- Run
/fishadminand open Fishmongers. - Type a name, pick the townsman, and stand where he should stand, facing the way he should face.
- 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
- Draw the fishing rod as usual, put bait on the hook by using a bait item, and cast with right mouse and left mouse.
- Hook when the bobber goes under with left mouse, then reel with Space and pull against the fish’s runs with A and D.
- Keep the fish with E and sell it to the fishmonger with E at his counter.
- Open the angler’s book with
/fishbookto see the XP and the journal entry.
Controls
| Key | Action |
|---|---|
| Framework’s rod | Draw or holster the rod as usual |
| Use a bait item | Put it on the hook |
| Use a reel, line, hook, or bobber item | Fit it to the rod; the part in its place returns to the satchel |
| Right mouse + left mouse | Aim and cast |
| Left mouse | Hook when the bobber goes under |
| Space | Reel |
| A / D | Pull the rod left or right against the fish’s run |
| Shift | Reel the line in or let the fish go |
| E / F | Keep or release the fish in hand |
| R, rod in hand, line in | Open the rod’s gear |
| E, at a fishmonger | Talk (the line must be in) |
| Use a keepnet | Open it |
| Use a trap | Set it in the shallow water in front of you |
| E / R, at a trap | Empty or bait it / pick it up |
/fishbook | The angler’s book |
/fishadmin | The 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:
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.