All products

np_fishing

Fishing with a cinematic in-world HUD. Cast, wait for the bite, strike and fight the fish on a tension bar, and every catch is unique. Rig your rods in the tackle box, fill the journal, sell to buyers whose prices react to the market and fish tournaments from the Angler app in np_phone.

v0.1.0ESX · qbx · qb · standaloneRequires oxmysqlRequires np_npchandler 1.1.0+ · np_prophandler 1.1.0+
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
ESX, qbx, qb, standalone
Dependencies
oxmysql, np_npchandler 1.1.0+, np_prophandler 1.1.0+
Database
Tables created on start
Inventory
np_inventory, ox_inventory, qb-inventory, or none
Optional
np_hud, np_phone, np_payments, np_identification, np_menu, np_admin and more
Languages
English, German
Build
Node 18+ to build the NUI once
Casting at dusk: the power pip meter with the perfect window, the landing spot 34 m out at 2.1 m deep, the float depth gauge, the bite rating, bait and cooler chips and the control hints
Casting at dusk: the power pip meter with the perfect window, the landing spot 34 m out at 2.1 m deep, the float depth gauge, the bite rating, bait and cooler chips and the control hints

Taken from the NUI in the browser at 1920×1080, with mock data.

What's in it

The server rolls every fish, checks every cast and pays every sale. The client only draws it.

The fishing loop

  • Cast, bite, strike, fight, reveal in a free-floating HUD: white text, grey key caps, diamond pip meters.
  • Species, weight and quality are rolled on the server at the bite, with a session token and timing checks.
  • Every catch is unique: weight, length, 1 to 5 stars and freshness. Keep, release, photo or show off.
  • 19 species, 3 of them legendary, in real GTA V waters: the Alamo Sea, Lago Zancudo, lakes, rivers, piers, the coast and the deep sea. Each with its hours, weather, seasons, depth and baits.

Gear and progression

  • Rigs live on the rod item: reel, line, hook, float, bait, lures and attractants, with wear per cast and fight.
  • XP and levels, three perk trees, personal and server records, achievements and the angler's journal.

A living market

  • Five fish buyers with their own tastes. Prices drop as you sell and recover over time.
  • Reputation tiers, price tips, freshness and ice, fillets, trophies, an aquarium and orders with escrow.
  • Bait and tackle shops with respooling and repairs.

Phone and tournaments

  • The Angler app in np_phone: forecast, spots, events, market and records, with alerts before a good window.
  • Tournaments in four kinds with entry fees, prize pools, a live leaderboard and a staff screen.

Licences and rangers

  • A fishing licence document in np_identification. Public piers stay free.
  • Rangers check licences. Keeping a protected fish or one out of season can be called in as poaching.

Works with your server

  • ESX and np_inventory first, also qbx, qb, ox_inventory, qb-inventory or none.
  • np_npchandler and np_prophandler 1.1.0+ are required, every other np_* sibling is optional and detected at start. Staff permissions through np_admin, no ACE.
  • Exports, hooks and server events for your own scripts. English and German.

A closer look

Cast, bite, strike, fight

Use a rod item or /fish, walk to the water and hold the left mouse button.

The fight: the fish runs left, a hint to pull right, the tension bar with the green zone, line out 28 of 120 m and drag 6 of 10
  1. Cast: charge the pip meter and release in the white window. The mouse wheel aims, L sets the float depth.
  2. Bite: nibbles first, then the float goes under. Click inside the strike window.
  3. Fight: keep the needle in the green, counter runs with A and D, loosen the drag when it runs. Hold R to cut the line.
  4. Reveal: the catch card with weight, length, stars, value and XP. E keeps, Q releases, P takes a photo, G shows it off.

Tackle box, journal and skills

F7 opens the tackle box, F6 the journal. Both keys can be remapped in the GTA key bindings.

Tackle box: rig slots with wear and the stat deltas of a braided line before you mount it
Skills: the technique, knowledge and trade perk trees
  • Rig slots: rod, reel, line, hook, float, bait, lure and attractant, with the stat change before you mount a part and rig presets.
  • Wear: lines and rods wear per cast and fight. A worn line snaps earlier. Repair kits, respooling and repairs at the shops.
  • Journal: the species collection, records, known spots, achievements and the best setup per fish.
  • Perks: technique (tension, strike window, cast distance), knowledge (hints, weight estimate, forecast) and trade (prices, reputation, slower spoiling).

Fish buyers and shops

Five buyers along the coast and the Alamo Sea, each with its own water, favourite species and services.

Pearl's Seafood: the cooler with freshness per fish, offers with the reputation bonus, today's prices, an order and a price tip
PartHow it works
DemandEvery sale lowers that species' price at that buyer, and it recovers per hour
ReputationOne point per fish sold. Regular from 25 (+5 %), Partner from 100 (+10 %)
FreshnessFish spoil. Ice halves it for a while, the cooler on np_inventory keeps them longer
ServicesFillets for restaurant jobs, trophy mounts, aquarium donations and ice
OrdersNPC orders at the buyers, and restaurant or player orders with the reward held in escrow

The Angler app

With np_phone running, Angler is in the phone's app store. Without it, alerts come as toasts.

Forecast: the best window, hourly bars, hotspots and alertsEvents: the live leaderboard, upcoming tournaments and resultsMarket: prices at the buyers and open orders
  • Forecast: the best window, bite rating bars for the next hours, hotspots and a push shortly before an excellent window.
  • Spots: every water with its fish and how busy it is. Share a spot with a friend.
  • Events: the live leaderboard with your rank, upcoming tournaments to join and results.
  • Market and records: prices at the buyers, open orders, and personal and server records.
  • Also a Dynamic Island timer while your line is in the water, catch photos in the gallery or on Chirp and tournament dates in the calendar.

Tournaments

Scheduled from the config or by staff with /fishtournament, joined from the Angler app.

Staff tournament screen: a new tournament form and the schedule with running, scheduled, finished and cancelled tournaments
  • Four kinds: heaviest fish, most species, biggest bag and catch and release.
  • Entry fees and prize pools, split 60 / 30 / 10 by default. Too few anglers and every fee is refunded.
  • Start and end announced on np_hud, Discord scheduled events through np_discord and a calendar entry for every angler.
  • Staff need the np_admin node np_fishing.tournaments. Without np_admin: listed identifiers, framework admin groups or Discord roles.

Licences, rangers and poaching

The fishing licence is a document type in np_identification. While it runs, a licence is required by default.

PartHow it worksDefault
LicenceIssued at the city hall desk or by a ranger. Public piers need noneRequired while np_identification runs
RangersCheck the licence of the nearest angler from np_menu, ox_target, qb-target or /fishlicenceranger, police, sheriff on duty
PoachingKeeping a protected species or one in its closed season. A witness may call it in, and licence points can be added35 % report chance
DispatchReports go to np_drugs' dispatch, or to a server event for your own MDTCode 10-66

Without np_identification no licence is needed. Config.License.required can force it on or off.

Set it up

Compatibility

ESX with np_inventory is the first target. The framework and the inventory are detected at start, and every np_* sibling but np_npchandler and np_prophandler (both 1.1.0 or newer) is optional with a fallback. Siblings can start later or restart.

FrameworkMoneyIdentity
es_extendedAccounts money and bankxPlayer identifier
qbx_corecash and bankcitizenid
qb-corecash and bankcitizenid
StandaloneNone: nothing costs, nothing payslicense
InventoryItemsFreshness and cooler
np_inventoryRegistered at runtime, shops with the np_payments checkoutNative decay, the cooler is a container
ox_inventoryPaste the item block from the docs, ox shopsnp_fishing's timestamps
qb-inventoryPaste the item block, np_fishing's own shop screennp_fishing's timestamps
NoneA virtual tackle box with a starter kitThe catch log
SiblingWith itWithout it
np_hudToasts, prompts, progress, announcementsnp_fishing's own
np_phoneThe Angler app, island, calendar, photosNo app, toasts
np_paymentsShop checkout, tournament fees, refundsFramework cash, then bank
np_identificationThe fishing licence, licence pointsNo licence required
np_menuTargets on buyers and shops, ranger checkox_target, qb-target or E
np_minigamesOptional arcade fights (reel, strike)The in-world fight
np_adminStaff nodes, live settings, logs, themeConfig.Admins, groups, Discord roles

Required: np_npchandler and np_prophandler 1.1.0+ for buyer peds, stalls and the rod. Also detected: np_discord, np_character, np_tattoos, np_drugs, np_gangs and np_environmental. np_fishing is covered by a Lua test harness with fakes of every framework, inventory and sibling, but it has not run on a live server yet.

Installation

The tables are created on the first start. You build the NUI once.

  1. Put the resource in resources/ as np_fishing.
  2. Build the NUI once (Node 18+). It also writes the fish item images:
    cd web && npm ci && npm run build
  3. Items: np_inventory needs nothing. On ox_inventory or qb-inventory paste the item block from the docs.
  4. Start it after its dependencies:
    ensure oxmysql
    ensure es_extended        # or qbx_core / qb-core
    ensure np_admin           # optional siblings before np_fishing
    ensure np_hud
    ensure np_phone
    ensure np_payments
    ensure np_identification
    ensure np_inventory       # or ox_inventory / qb-inventory
    ensure np_npchandler      # required, 1.1.0+
    ensure np_prophandler     # required, 1.1.0+
    ensure np_fishing
  5. Buy a rod kit at Sandy Shores Bait & Tackle, rig it in the tackle box (F7) and cast at the Alamo Sea.

For your own scripts

Server exports for species, waters, bite ratings, catches, records, prices and orders, hooks that can veto or change values, and server events for every catch, sale and tournament.

-- salmon week: pay half again for salmon
exports.np_fishing:registerHook('sellPrice', function(p, price)
  if p.species == 'salmon' and IsSalmonWeek() then return math.floor(price * 1.5) end
end)

-- a restaurant posts an order, the fish go to its chef
exports.np_fishing:CreateFishOrder({ species = 'mackerel', count = 5, minQuality = 3,
  reward = 600, hours = 2, issuerName = "Pearl's Seafood", deliverTo = chefIdentifier })

-- log legendaries to your own channel
AddEventHandler('np_fishing:server:legendary', function(e)
  print(('%s landed a %s'):format(e.identifier, e.catch.species))
end)
  • Hooks: beforeCast, beforeCatch, beforeKeep, beforeSell, beforeTournamentJoin, sellPrice and xpGain.
  • Client: IsFishing, GetCurrentZone, GetFishingLevel, and an event that stops fishing for a cutscene.

Questions

Which frameworks does it support?

es_extended first, then qbx_core and qb-core, detected at start. Standalone works too: nothing costs and nothing pays, and anglers are known by their license.

Do I need np_inventory?

No. np_inventory is the first target: items are registered on their own, fish spoil natively and the cooler is a container. ox_inventory and qb-inventory work with the item block from the docs. With no inventory at all, players get a virtual tackle box and cooler with a starter kit.

Does it need np_phone?

No. The Angler app needs np_phone. Without it the forecast alerts and tournament news come as toasts, players join tournaments with /fishcup, and everything else works the same.

Do players need a fishing licence?

Only while np_identification runs, and only by default: Config.License.required can be set to always or never. Public piers never need one.

Does it use ACE permissions?

No. Staff tools check np_admin nodes like np_fishing.tournaments and np_fishing.prices. Without np_admin, listed identifiers, framework admin groups or np_discord roles count as staff.

Has it been tested on a live server?

Not yet. Every module is covered by a Lua test harness with fake natives, an in-memory database and fakes of every framework, inventory and np_* sibling, and every screen has a browser mock. Timings and the water zones may need tuning on your map.

Can I change the fish, the waters and the prices?

Yes. Species, waters, gear, buyers, shops, perks and tournaments are plain Lua config files. With np_admin running, most values like demand, alerts, tournaments and the licence rule can be changed live by staff.

Is it in German?

English and German, for the Lua messages, the NUI and the Angler app.

Works well with

Build once, ensure it, cast.

Installation, every config key and every export are in the docs.

Install np_fishing