Skip to content

Integrations ​

Every integration is optional. Each sibling is detected at runtime (GetResourceState), every call into it is wrapped in pcall, and it is re-wired when the sibling starts or restarts. A missing, stopped or broken sibling falls back to the built-in behaviour instead of throwing errors. On start, the server console prints one line per integration: active, fallback (…) or disabled.

Frameworks ​

Config.Framework = 'auto' takes the first started of es_extended, qbx_core, qb-core, otherwise standalone. The bridge re-detects when one of them starts after np_flightradar.

es_extended qbx_core / qb-core Standalone
Job and grade xPlayer.getJob() PlayerData.job (grade.level) –
Duty job.onDuty when present (esx_core 1.10+), otherwise on duty job.onduty –
Admins np_admin node np_flightradar.admin; fallback: convars + Config.Admin (groups via xPlayer.getGroup()) np_admin node; fallback: identifiers np_admin node; fallback: identifiers
Pilot callsign – metadata.callsign –
Scanner item RegisterUsableItem, getInventoryItem count CreateUseableItem, count from ox_inventory or the framework np_inventory only
Job / duty changes esx:setJob, esx:playerLoaded QBCore:Server:OnJobUpdate, SetDuty, PlayerLoaded –

Without a framework, the onboard radar, the phone app, admins, Discord roles and the scanner with np_inventory still work. Job-based modes (ground, station) need a framework, np_discord roles or the np_admin node np_flightradar.ground.

Permissions never use ACE. They come from framework jobs and grades, duty, np_discord roles and the np_admin nodes np_flightradar.admin / .ground (with the np_admin_fallback convars and Config.Admin when np_admin isn't running). See Installation → Permissions.

Siblings ​

Switch any of these off with Config.Integrations.<name> = false. It is then ignored even when it is running.

Resource What it adds Without it
np_inventory Registers the flight_radar scanner item and answers item counts Framework usable item and item count
np_hud Toasts (TCAS, emergencies, feedback) and the top-right zone claim while the panel is open ox_lib notify, then the native feed
np_phone The Flightradar store app and emergency push notifications No phone app
np_menu Radial Flight radar entry and a Transponder submenu in aircraft Commands and the key only
np_identification Unlicensed flag for pilots without a valid pilot_license, optional licence requirement for the onboard radar No licence flag
np_discord Ground radar by Discord role and an emergency log channel Jobs and admins only, no log
np_manufacturing Callsigns from the vehicleCallsign state bag perModel, pilot callsign, plate
np_helicam Camera active flag from the helicam_cam state bag No camera flag
np_admin Permission nodes, 40 editable settings, emergencies in the audit log, staff tools Fallback convars and Config.Admin, config.lua only

np_inventory ​

When np_inventory starts, the item from Config.Access.item is registered with RegisterItem: label Flight radar scanner, weight 400, not stackable, closes the inventory on use, and the client export np_flightradar.useScanner. GetItemCount answers whether a player holds it. If registration fails, the resource uses the framework usable item and prints a warning. See np_inventory → Items.

np_hud ​

Every notification goes through np_hud's Notify export with the plane icon: TCAS toasts (id np_fr_tcas, replaced in place and dismissed when clear), emergency alerts (id np_fr_emerg_<netId>, 12 s, red), transponder feedback and errors. While the panel is open, it claims the top-right zone with ClaimZones so np_hud hides what the panel covers. See np_hud → Sharing the screen.

Without np_hud, notifications go to ox_lib when it runs, otherwise to the native GTA feed.

np_phone ​

Registers a store app with registerStoreApp: id flightradar, name Flightradar, UI html/phone.html from this resource, blue tile, plane icon. Config.Phone.job and .item are passed as the store gates; without them the app is installed by default. The client forwards radar updates with sendAppMessage('flightradar', 'contacts', payload), and emergency alerts are sent as phone notifications from the app. See Using the radar → Phone app.

Config.Phone.enabled = false or Config.Integrations.np_phone = false turns the app off.

np_menu ​

Adds two radials, re-added whenever np_menu restarts and removed when np_flightradar stops:

  • Flight radar on the global radial, shown when any panel mode is granted. It toggles the panel.
  • Transponder on the vehicle radial, shown to the pilot (or copilot, if allowed) of an aircraft: on / off, squawk 7000 / 7500 / 7600 / 7700, and Set callsign, which opens an np_menu input dialog.

See np_menu → Radial & context.

np_identification ​

Calls hasValidDocument(src, Config.Identification.document) (default pilot_license) for the pilot of each aircraft, cached for 60 s and refreshed off-thread. With checkPilotLicense, pilots without a valid licence show as Unlicensed (yellow blip, badge). With requireLicenseForAirRadar, they don't get the onboard radar. An unknown state never flags or denies. See Configuration → Identification and np_identification → Exports.

np_discord ​

See np_discord.

  • Roles: with Config.Access.discordRoles set, HasAnyRole(src, roles) is asked when a player joins, on job and load events, when np_discord starts, and every 10 minutes. The answer is cached, because the export yields. Holding a role grants the ground radar. When Discord can't be reached, the last known answer is kept.
  • Logs: with Config.Emergency.discordChannel set, every emergency is posted with Log(channel, entry): title, squawk, meaning, callsign, coordinates and the player who set it.

np_manufacturing ​

Reads the vehicleCallsign entity state bag. It is the second callsign source, after a callsign set on the transponder. No exports are called.

np_helicam ​

Reads the helicam_cam entity state bag. When on is true, the contact gets the Camera active badge in the panel. No exports are called. See np_helicam → State bags.

np_admin ​

np_admin is not a dependency; the integration lib is vendored as bridge/np_admin.lua. When np_admin runs:

  • Permissions: the nodes np_flightradar.admin and np_flightradar.ground show up under Flight radar in its permission editor. See Installation → Permissions.
  • Settings: 40 options under Flight radar. See Configuration → Editable in np_admin.
  • Audit log: every emergency squawk (7500 / 7600 / 7700) is written to the audit log (category np_flightradar, action emergency) with squawk, meaning, callsign, aircraft kind, net id, coordinates and the player who set it. The np_discord log channel keeps working either way.
  • Staff tools (Resource tools, node np_flightradar.admin):
Action Target What it does
Open admin flight radar – Opens the panel in admin mode. The server still checks the node
Set transponder Player Squawk, callsign (- resets it) and power of the aircraft the player sits in. Empty fields stay unchanged. An emergency squawk alerts like a pilot's would