Events, commands & keys ​
Server events ​
server
Server-local (AddEventHandler), never sent over the network. One argument: the payload table. catch is the
Catch shape.
| Event | Payload |
|---|---|
np_fishing:server:ready |
none |
np_fishing:server:caught |
{ source, identifier, catch }: a fish was landed (before keep or release) |
np_fishing:server:kept |
{ source, identifier, catch }: it went into the cooler |
np_fishing:server:released |
{ source, identifier, catch } |
np_fishing:server:sold |
{ source, identifier, buyer, items = { { species, weight, quality, price } }, total } |
np_fishing:server:legendary |
{ source, identifier, catch }: a legendary was landed |
np_fishing:server:levelUp |
{ source, identifier, level } |
np_fishing:server:record |
{ source, identifier, catch, scope = 'personal' | 'server' } |
np_fishing:server:tournamentStarted |
{ tournament } |
np_fishing:server:tournamentFinished |
{ tournament, results = { { rank, identifier, name, score, scoreText, prize } } } |
np_fishing:server:dispatch |
{ kind, code?, coords, source?, note?, title? }: a poaching report, fired when np_drugs' dispatch isn't running |
lua
AddEventHandler('np_fishing:server:dispatch', function(r)
-- forward to your own dispatch
exports.my_dispatch:Alert({ code = r.code, title = r.title, message = r.note, coords = r.coords })
end)
Commands ​
| Command | Who | What |
|---|---|---|
/fish |
Everyone | Take the rod out or put it away (also: use a rod item). Config.Loop.command, off with commandEnabled = false |
/tackle |
Everyone | Tackle box |
/journal [species|records|spots|achievements|skills] |
Everyone | Angler's journal, optionally on a tab |
/fishlicence |
Rangers | Check the licence of the nearest angler (Config.Social.rangers.jobs) |
/fishcup [id] |
Everyone | List the open tournaments, or join one by id (works without np_phone) |
/fishmode [native|arcade|default] |
Everyone | Your own fight mode: in the world or as the np_minigames reel (needs np_minigames and Config.Minigames.playerChoice) |
/fishtournament |
Staff | The tournament screen (node np_fishing.tournaments) |
/fishtournament start|finish|cancel <id> |
Staff | Start, end or cancel a tournament |
Keys ​
Every key is remappable in the GTA settings → Key Bindings → FiveM (the commands are named np_fishing_*). The
fishing keys only act while the rod is out.
| Default | Key mapping | Action |
|---|---|---|
| Left mouse | cast |
Hold to charge the cast, click to strike, hold to reel |
| Mouse wheel | wheel_up / wheel_down |
Aim the cast; in the fight loosen / tighten the drag |
A / D |
left / right |
Counter the fish's run |
R |
reset |
Reel in; hold in the fight to cut the line |
L |
depth |
Step the float depth |
E / Q / P / G |
keep / release / photo / showoff |
On the catch card: keep, release, photo, show off |
X |
stow |
Put the rod away |
F7 |
tackle |
Tackle box (Config.Progression.keys.tackle) |
F6 |
journal |
Angler's journal (Config.Progression.keys.journal) |
At buyers and shops the options come from np_menu, ox_target or qb-target; without any of them a prompt
with E. A remapped key shows its default label in the hints when the game can't name the new binding.