Skip to content

Licences & rangers ​

The fishing licence ​

The licence is a document of np_identification: the type fishing_license (Config.License.document). np_identification adds it as a built-in type (Angelschein): issued at the city hall desk and by the ranger job, $100, valid for a year, renewable online. On an np_identification version without that type, create it in the designer with the key fishing_license. np_fishing never issues licences itself; it asks np_identification with hasValidDocument(src, 'fishing_license'). An expired, suspended, revoked or lost document counts as missing. See np_identification → Used by np_fishing.

Config.License.required Effect
'auto' (default) Required while np_identification runs, not checked without it
true Required; without np_identification np_fishing warns once and checks nothing (nobody could hold one)
false Never required

Where a licence is required, np_fishing checks it when the rod comes out (where the angler stands), at every cast (the zone the float lands in) and when joining a tournament (requireLicense). If the check itself fails (np_identification errors), the player is never punished for it.

Public piers are free: Config.Social.license.exemptZones (Del Perro Pier, Chumash Pier, Paleto Bay Pier) never need a licence; exemptKinds can free whole kinds (e.g. { 'pier' }).

Rangers ​

Players with a job in Config.Social.rangers.jobs (ranger, police, sheriff), on duty where the framework knows duty, can check the licence of an angler within 4 m:

  • the np_menu player option Check fishing licence (else the same option through ox_target or qb-target),
  • or /fishlicence for the nearest player.

The answer shows the angler's name and the licence state (valid, missing, exempt at a public pier, not_required), licence points, whether they are fishing right now, and a kept protected or closed-season fish from the last hour. The angler is told who checked them (notifyTarget).

Poaching ​

Violation When Licence points
no_license A fish landed where a licence is needed, without one –
protected Keeping a protected species (golden_carp: the golden koi must be released) 2
closed_season Keeping a species in its closed season (salmon in winter) 1

Each violation warns the angler, adds the points to their licence through np_identification's addPoints (when they hold one), counts in the angler's poaching stat and is logged to np_discord. With a chance of 35 % (reportChance, at most one report per angler every 10 minutes) a witness calls it in, code 10-66:

  • to np_drugs' dispatch when it runs,
  • else as the server event np_fishing:server:dispatch for your own dispatch script (see Events).

Config.Social.poaching.enabled = false turns all of this off.