All products

np_flightradar

A server-authoritative flight radar. Pilots see the traffic around them, police and ATC watch the sky from the ground or a tower console, and anyone with a scanner item or the phone app can follow air traffic live. Transponders with squawk codes and callsigns, emergency squawks that alert the right jobs, primary radar for aircraft with the transponder off and TCAS-style advisories for pilots.

v1.0.0ESX · qbx · qb · standalonenp_inventory firstNo database
Price TBAStore link follows at release
Installation guideDocumentation
Version
1.0.0
Frameworks
ESX, qbx, qb, standalone (auto-detected)
Requires
OneSync (set onesync on)
Database
Not needed. No build step, no streamed assets
Integrations
np_hud, np_phone, np_inventory, np_identification, np_discord, np_menu, np_manufacturing, np_helicam. All optional
Keys
F6 panel, /squawk, /transponder, /callsign. Rebindable
Units
Aviation (ft, kt, fpm, NM) or metric
Languages
English, German
Permissions
Jobs, grades, duty, Discord roles and admin identifiers or groups. No ACE
The scope up close: an emergency squawk in red, a police helicopter with its camera on, an unidentified contact with the transponder off and the TCAS traffic advisory
The scope up close: an emergency squawk in red, a police helicopter with its camera on, an unidentified contact with the transponder off and the TCAS traffic advisory

All shots are browser renders of the NUI with mock data (the panel's dev mode feeds simulated traffic). The map behind the panel is a placeholder; in game the real world and the GTA map sit behind it.

What's in it

The server owns the radar: it decides who sees what, in which mode and range, and it writes every transponder. The panel and the phone app use the Nimbus UI look.

Live contacts

  • Blips with heading, callsign and a colour per organisation (police, EMS, fire, military).
  • Aircraft near you get native entity blips. Far ones are dead-reckoned between updates, so they move smoothly.
  • No ghost blips: every update is the full set, so anything missing or despawned is removed at once.

Access modes

  • Onboard (any aircraft seat), ground (jobs, grades, duty, Discord roles), scanner item, radar station, phone app and admin.
  • Each mode has its own range. The server works out the mode and never trusts the one a client asks for.

Transponder

  • On or off, a 4-digit octal squawk and a callsign, stored in a state bag only the server writes.
  • Set it with /squawk, /transponder, /callsign, the radial menu or the panel. Copilots too, if you allow it.

Emergencies

  • Squawking 7500, 7600 or 7700 turns the contact red and flashing.
  • Police, EMS and ATC get a toast on np_hud and a push on np_phone. Optional np_discord log channel.

Towers and primary radar

  • Radar stations at LSIA, Sandy Shores and McKenzie Field: stand at the console for unlimited range.
  • Stations and admins still see aircraft with the transponder off, as unidentified.

TCAS-lite

  • Traffic advisories (TA) and resolution advisories (RA: climb or descend) from the closest point of approach.
  • Shown as np_hud toasts and in the panel, with a sound, and fired as a local event.

The panel (F6)

  • Range steps, heli, plane and emergency filters, transponder controls and the contact list.
  • Click a contact to set a GPS waypoint. In a vehicle it opens without the mouse, a second press gives focus.
  • Aviation or metric units, English or German.

Idle means idle

  • Nothing runs while nobody is subscribed. Seat detection is event-driven.
  • One snapshot per tick, filtered per subscriber. Static data is only sent when it changes, so the hot payload is a few integers per contact.

Better with the rest of NP DEV

Built for es_extended and np_inventory first. Every sibling is optional, detected at runtime, re-wired when it restarts and can be switched off in Config.Integrations.

  • Registers the flight_radar scanner item at runtime and checks item counts.
  • Without it: the framework's usable item (add flight_radar to the ESX items table).
  • Toasts for TCAS, emergencies and feedback, and the top-right zone claim while the panel is open.
  • Without it: ox_lib notify, then the native feed.
  • The Flightradar store app with live traffic, and emergency push notifications.
  • Open to everyone, or gated by job or item.
  • Flags pilots without a valid pilot_license as unlicensed.
  • Can also require the licence for the onboard radar.

np_discord

  • Ground-radar access by Discord role, cached and refreshed every 10 minutes.
  • An emergency log channel for 7500 / 7600 / 7700.
  • A radial Flight radar entry, and a Transponder submenu in aircraft: on/off, 7000 / 7500 / 7600 / 7700 and a callsign dialog.
  • Callsigns from the vehicleCallsign state bag, so a unit's livery number shows on the radar.
  • A camera active flag on helicopters whose camera is up, from the helicam_cam state bag.

A closer look

Access modes

The client asks to subscribe, the server picks the best mode the player is allowed and answers with the range and whether primary radar is on. Access is cached for 30 seconds and dropped on job, duty or load events.

ModeWho gets itRange
OnboardAnyone in an aircraft seat (optionally only with a pilot licence)6 km
Groundpolice, sheriff, ambulance, atc with a minimum grade, on duty, or a Discord role12 km
Scanner itemPlayers with the flight_radar item4 km
StationThe station's jobs standing at a tower consoleUnlimited, primary radar
PhoneEveryone, or the jobs in Config.Phone.job8 km
AdminIdentifiers or ESX groups in Config.AdminUnlimited, primary radar
  • Ranges are per mode in Config.Ranges. The panel's range steps are capped at the range you were granted.
  • Traffic: by default an aircraft shows when someone flies it. Engine-only, a minimum speed or every parked aircraft are options.
  • No ACE: admins come from identifiers and framework groups. Config.CanUse or RegisterAccessCheck can veto any mode.

Transponder and callsigns

The server checks that you sit in the pilot seat (or the copilot seat, if allowed) of a registered aircraft, sanitises the values and rate-limits changes to one per second.

CommandWhat it does
/radar · F6Opens the panel. In a vehicle without the mouse, a second press gives focus, the next one closes it
/squawk <code>Sets the squawk: 4 digits, 0 to 7
/transponder [on|off]Switches the transponder, or toggles it
/callsign [text]A-Z, 0-9 and -, up to 8. Empty resets it

Where the callsign comes from

  1. The pilot's transponder callsign
  2. vehicleCallsign from np_manufacturing
  3. Config.Callsigns.perModel, for example polmav as AIR-1
  4. The pilot's framework callsign, then the plate

Emergencies and TCAS-lite

Emergencies go to the people on the ground, advisories go to the pilot.

SquawkMeaning
7500Hijack
7600Radio failure
7700General emergency
  • The contact turns red and flashes. Config.Emergency.notifyJobs (police, ambulance, atc) get an np_hud toast and an np_phone push, and the np_flightradar:emergency event fires for your MDT.
  • TA when traffic will come within 600 m and 150 m vertically in the next 25 seconds, RA (climb or descend) inside half that box. The check runs at 2 Hz, only while you are the pilot.
The scope with a traffic advisory for SKY12 at 2 o'clock and N737LS squawking 7700 in red

np_phone app

With np_phone running, np_flightradar adds the Flightradar app to the store.

Flightradar app: the live scope and contact list, and the detail sheet of N737LS squawking 7700 with altitude, speed, vertical speed, heading, distance, bearing and Set waypoint
  • Live scope with all, heli, plane and emergency filters, 8 km by default.
  • Contacts with squawk, model, altitude, speed, distance and bearing.
  • Detail sheet with vertical speed and heading, and a button to set a waypoint.
  • For everyone, or limited to jobs. An item can gate the install. Map blips for phone users are optional.

Set it up

Compatibility

OneSync is the only requirement. The framework is auto-detected in the order ESX, qbx, qb, standalone.

FrameworkWhat it adds
es_extendedJobs and grades, job.onDuty when present (otherwise the job counts), admin groups from xPlayer.getGroup(), the usable flight_radar item
qbx_coreJobs, grades and the duty flag, metadata.callsign as a callsign fallback, the usable item
qb-coreJobs, grades and the duty flag, metadata.callsign as a callsign fallback, the usable item
StandaloneOnboard and phone modes, admins by identifier, the scanner item through np_inventory
KindSupported
Inventorynp_inventory, or the framework's usable item
Notificationsnp_hud, ox_lib, or the native feed
Phonenp_phone (store app and push notifications)
Licencesnp_identification (pilot_license)
Discordnp_discord (roles and a log channel)
Menusnp_menu (radial entry and transponder submenu)
Vehiclesnp_manufacturing callsigns, np_helicam camera flag

Installation

No database, no SQL, nothing to build.

  1. Enable OneSync (set onesync on) and put the resource in resources/ as np_flightradar.
  2. Start it after the framework and the optional siblings. Siblings that start later or restart are picked up automatically:
    ensure es_extended        # or qbx_core / qb-core
    ensure np_inventory       # optional
    ensure np_hud             # optional
    ensure np_phone           # optional
    ensure np_menu            # optional
    ensure np_identification  # optional
    ensure np_discord         # optional
    ensure np_flightradar
  3. The scanner item: np_inventory registers flight_radar at runtime. With ESX alone, add a flight_radar item to your items table and the resource makes it usable.
  4. In config.lua, set the jobs and grades for the ground radar, the stations, the emergency jobs and the units.

Configuration

Everything is in config.lua. The options you are most likely to change:

OptionDefault
Config.Framework'auto': ESX, then qbx, qb, standalone
Config.Units'aviation' (ft, kt, fpm, NM) or 'metric'
Config.UpdateInterval1000 ms between updates (250 to 5000)
Config.Rangesair 6000, ground 12000, item 4000, phone 8000, station and admin unlimited
Config.Access.jobspolice, sheriff, ambulance, atc from grade 0, on duty
Config.Access.discordRolesnone
OptionDefault
Config.StationsLSIA Tower, Sandy Shores Airfield, McKenzie Field
Config.Transponderon, squawk 7000, copilot may edit
Config.Emergencynotify police, ambulance, atc; no Discord channel
Config.Proximity600 m × 150 m, 25 s look-ahead, sound on
Config.Identificationflag unlicensed pilots, licence not required
Config.Integrationsevery sibling on

For your own scripts

Server exports for the aircraft list, transponders and access checks, client exports for the panel, and local events for contacts, emergencies and advisories.

-- server: every aircraft the radar knows
for _, a in ipairs(exports.np_flightradar:GetAircraft()) do
  print(a.callsign, a.squawk, a.kind, a.speed)
end

-- force a squawk, e.g. from your MDT
exports.np_flightradar:SetTransponder(netId, { on = true, squawk = '7700' })

-- veto modes with your own rules (false denies)
exports.np_flightradar:RegisterAccessCheck(function(src, mode) return mode ~= 'admin' end)

AddEventHandler('np_flightradar:emergency', function(netId, squawk, info)
  -- info = { callsign, kind, reason, by, coords }
end)

Questions

Do I need a framework?

No. Standalone servers get the onboard radar, the phone app, admins by identifier and, with np_inventory, the scanner item. ESX, qbx or qb add jobs, grades and duty for the ground radar.

Do I need OneSync?

Yes. The server tracks aircraft through entity events and state bags, so the resource declares dependency '/onesync'.

Can a cheater give himself the ground radar?

No. The client only asks to subscribe; the server picks the mode from the player's seat, job, duty, item, station and roles, and never trusts a mode the client sends.

Can pilots hide from the radar?

Switching the transponder off hides them from everyone but radar stations and admins, who see an unidentified contact on primary radar within 8 km.

Does it use ACE permissions?

No. Access comes from jobs, grades, duty, items, Discord roles and admin identifiers or ESX groups, plus your own Config.CanUse hook.

What does it cost on the server?

Nothing while nobody is subscribed. With subscribers, one snapshot per tick is filtered per player and only a few integers per contact are sent; names and models only when they change.

Works well with

Ensure it, set your jobs, squawk 7000.

Installation, configuration, every export and event are in the docs.

Install np_flightradar