Bridges & integrations ​
np_fishing talks to the framework and the inventory through bridges in bridge/, and to every np_* sibling through
one adapter file each in integrations/. Each call into another resource is wrapped, so a missing resource or export
degrades a feature instead of breaking a handler.
Framework ​
| Bridge | Resource | Identifier | Money | Admin groups (Config.AdminGroups) |
|---|---|---|---|---|
esx |
es_extended | xPlayer.identifier |
accounts money / bank |
xPlayer.getGroup(): admin, superadmin |
qbx |
qbx_core | citizenid | cash / bank |
HasPermission: admin, god |
qb |
qb-core | citizenid | cash / bank |
HasPermission: admin, god |
standalone |
none | license | none: nothing costs, nothing pays | none (Config.Admins and np_discord roles only) |
Auto-detection order (Config.Framework = 'auto'): es_extended → qbx_core → qb-core → standalone. es_extended is the
first target. Jobs (rangers, restaurant orders) and duty come from the framework. Names come from
np_character when it runs, else the framework.
Inventory ​
| np_inventory | ox_inventory | qb-inventory (qb / ps / lj) | none | |
|---|---|---|---|---|
| Items | Registered at runtime, again on its restart | data/items.lua block |
shared/items.lua block |
Virtual tackle box (starter kit) |
| Use | Export useItem |
Export useItem, usingItem answers false (never consumed) |
CreateUseableItem |
– |
| Fish metadata, stars, spoiling | Native: quality and created / expires decay |
Metadata, freshness by np_fishing | info, freshness by np_fishing |
Catch log |
| Cooler container | Yes (fish keep twice as long) | Item only | Item only | Virtual cooler |
| Shops | RegisterShop (checkout through np_payments) |
RegisterShop |
Own shop screen | Own shop screen |
| Busy while fishing | setBusy (no inventory over the fight) |
– | – | – |
Auto-detection order (Config.Inventory = 'auto'): np_inventory → ox_inventory → qb-inventory → none.
np_* siblings ​
np_fishing depends on none of them except np_npchandler and np_prophandler. Each adapter in integrations/ declares the exports it uses and wraps them
behind a function with a built-in fallback. At start (and whenever a sibling starts or stops) the console prints one
line per sibling: active, fallback (…) or missing export <name>. Config.Integrations.<name> = false forces the
fallback. A test reads the sibling repositories next to np_fishing and fails when a declared export no longer exists
in their source.
| Sibling | Used for | Exports | Without it |
|---|---|---|---|
| np_inventory | Items, decay, the cooler container, shops, busy flag while fishing | RegisterItem, Items, AddItem, RemoveItem, GetInventoryItems, GetSlot, SetMetadata, CanCarryItem, GetItemCount, RegisterStash, OpenInventory, CloseInventory, RegisterShop; client setBusy, isOpen, closeInventory |
ox / qb bridge, else none |
| np_hud | Toasts, prompts, progress, announcements, HUD zones claimed while fishing | Notify, NotifyAll, Announce; client Notify, ShowPrompt, HidePrompt, Progress, CancelProgress, ClaimZones |
np_fishing's own toasts, prompt and progress |
| np_phone | The Angler app, notifications, Dynamic Island, calendar, photos, shared spots, phone blocked while fishing | registerStoreApp, unregisterStoreApp, registerAppRpc, sendAppMessage, notify, setBadge, setIsland, clearIsland, addPhoto, sendLocation, hasPhone, addCalendarEvent, call; client setBlocked |
No app; notifications as toasts |
| np_payments | Shop checkout, tournament entry fees, order escrow, refunds | Request, Charge, CanAfford, Refund |
Framework money (Config.Payments.account); standalone: free |
| np_identification | The fishing_license document, licence points |
hasValidDocument, addPoints; event np_identification:issued |
No licence required |
| np_menu | Options on buyers and shops, the ranger's player option | addContextOption, removeContextOption, addRadial, removeRadial, callServer; registerAction, removeAction |
ox_target → qb-target → own prompt and E |
| np_discord | Staff by role, logs (tournaments, legendaries, poaching), scheduled tournament events | HasRole, Log, CreateScheduledEvent |
No Discord |
| np_admin | Permission nodes, Resource settings, logs, staff tools, the server theme | the vendored lib (npAdmin) |
Config.Admins, framework admin groups, np_discord roles |
| np_character | Character names on catches, boards and records | getActiveCharacter, getCharacter |
Framework names |
| np_tattoos | Trophy ink for tournament winners (off by default) | registerDesign, addInk |
No trophy ink |
| np_drugs | Poaching reports to its dispatch | Dispatch |
Server event np_fishing:server:dispatch |
| np_gangs | Optional turf tax on sales (off by default) | GetTurfAt, AddGrip |
No turf tax |
| np_minigames | Optional arcade fights: the fight as reel, the bite as strike (off by default), server-validated |
Start, Cancel, IsActive; client IsActive |
The in-world fight |
| np_environmental | Listen only: a reported scene (a spill) adds pollution to the spot pressure of its cells until it is cleared | events np_environmental:reported, np_environmental:cleared |
Nothing |
np_npchandler and np_prophandler ​
Both are hard dependencies at 1.1.0+ (fxmanifest dependencies), not adapters: no Config.Integrations key, no fallback,
np_fishing never creates a ped or an object itself. Both delete everything of np_fishing when it stops.
| Handler | Used for | Exports |
|---|---|---|
| np_npchandler | Buyer and shop peds as local NPCs (np_fishing:buyer_<id>, np_fishing:shop_<id>, role vendor, streamed within Config.Economy.spawnDistance). Their interact option fires the client event np_fishing:economy:interact and opens the sell screen or the shop. Registered again on np_npchandler:ready |
registerNpcs |
| np_prophandler | Market stalls as streamed props (np_fishing:stall_<id>), registered again on np_prophandler:ready. The rod and the shown-off fish as synced attachments (keys rod, fish). The float and dropped fish as local props |
registerProps; client attach, detach, getAttachedEntity, createLocal, deleteLocal, getLocalEntity |
With server.attachments.clientModels set in np_prophandler, allow the rod and fish models
(Config.Loop.props.rod, Config.Loop.props.fish).
np_admin ​
The np_admin lib is vendored byte-identical as bridge/np_admin.lua (global npAdmin); np_admin is never a
dependency or an @np_admin include. Every permission check is npAdmin.can(src, node): nodes np_fishing.admin,
np_fishing.tournaments, np_fishing.prices, np_fishing.progression (see
Installation → Permissions). Settings: one Fishing page (see
Configuration). Staff tools: Give fishing XP, Reset fish market prices and the five
tournament tools. The server theme (brand colour, strength, Liquid Glass) is forwarded to the NUI and the Angler app;
Config.Theme overrides it only where set.
Other resources ​
- ox_target / qb-target: buyer, shop and ranger options when np_menu isn't running.
- screenshot-basic: catch photos.
- Weather sync: GlobalState weather (Renewed-Weathersync, qb-weathersync forks) for the bite rating, else
Config.World.weather.