Skip to content

np_flightradar v1.0.0 ​

A server-authoritative flight radar. Pilots see the traffic around them, police and ATC watch the sky from the ground or from a tower console, and anyone with the scanner item or the phone app can follow air traffic live. Aircraft have a transponder with a squawk code and a callsign. Emergency squawks (7500 / 7600 / 7700) alert the configured jobs, towers see aircraft with the transponder off on primary radar, and pilots get TCAS-style traffic and resolution advisories.

The panel and the phone app use the Nimbus UI look. The NUI is plain HTML/CSS/JS in html/, so there is nothing to build.

Radar panel in onboard mode, with a traffic advisory

Onboard mode (heading-up) with the transponder card and a traffic advisory. This is a browser render of the NUI with mock traffic (html/index.html?dev=1) over a mock map, not an in-game capture.

Ground mode Phone app
Radar panel in ground mode Flightradar phone app

Left: ground mode (north-up, no transponder card). Right: the np_phone app with its contact list and the detail sheet of an aircraft squawking 7700. Both are browser renders with mock data, not in-game captures.

Features ​

  • Live contacts: map blips with heading, callsign and a colour per organisation. Aircraft streamed in near you get native entity blips. Aircraft further away get coordinate blips that are dead-reckoned between updates, so they move smoothly.
  • No ghost blips: every update carries the full contact set. Anything missing from it is removed at once, and so are aircraft that despawn without an event.
  • Access modes: onboard (any aircraft seat), ground (jobs, grades, duty, np_discord roles), handheld scanner item, radar stations (towers with unlimited range and primary radar), phone app, and admin. The server works out the mode itself and never trusts the mode a client asks for. See Using the radar → Access modes.
  • Transponder: on / off, a 4-digit octal squawk and a callsign, stored in a state bag that only the server writes. /squawk, /transponder, /callsign, the np_menu radial and the panel change it.
  • Emergencies: squawking 7500 / 7600 / 7700 flags the contact (red, flashing), notifies the configured jobs through np_hud and np_phone, and can post to an np_discord log channel.
  • Primary radar: stations and admins also see aircraft with the transponder off, shown as Unidentified.
  • TCAS-lite: pilots get a traffic advisory (TA) or a resolution advisory (RA, climb / descend) from the closest point of approach. Alerts appear as np_hud toasts, in the panel and as a local client event.
  • Panel (F6): a radar scope, range buttons, helicopter / plane / emergency filters, transponder controls, and a contact list. Clicking a contact sets a GPS waypoint. Aviation (ft / kt / fpm / NM) or metric units.
  • Phone app: a Flightradar store app for np_phone with the same scope and list, filters, a detail sheet and Set waypoint.
  • Locales: English and German.

At a glance ​

  • Requires OneSync. The resource declares dependency '/onesync' and tracks aircraft with the server-side entityCreated / entityRemoved events. No database, no build step, no streamed assets.
  • ESX first. Built for es_extended and np_inventory. qbx_core, qb-core and standalone servers work through the bridge. Every np_* sibling is optional, detected at runtime and can be switched off. See Integrations.
  • Permissions without ACE. Access comes from framework jobs and grades, duty, np_discord roles and the np_admin nodes np_flightradar.admin / .ground, with a convar fallback when np_admin isn't running. Nothing uses add_ace or IsPlayerAceAllowed. 40 options are editable in np_admin.
  • Server-authoritative. The client asks for a mode, the server resolves what the player actually gets ({ mode, range, primary }) from its own view: framework job, item count, seat, position at a station. Clients write no state bags. Transponder changes go through a rate-limited net event that checks the seat.
  • Idle cost is zero. The broadcast thread only exists while somebody is subscribed. Seat detection is event-driven. Blip, NUI and TCAS work on the client only runs while it is needed. See Events → Performance.
  • Small payloads. Each tick sends a handful of integers per contact. Static data (callsign, model, flags) is diffed per subscriber and sent only when it changes. See Events → Network protocol.

Limitations ​

  • Straight-line dead reckoning. Coordinate blips are extrapolated along the last heading and speed for at most 1.5 update intervals. A turning aircraft jumps a little when the next update arrives. Aircraft streamed in near you use entity blips and don't have this.
  • Altitude is world height. The panel shows the aircraft's world Z (roughly MSL), not height above ground.
  • Primary radar has its own range. Unidentified contacts only show within Config.PrimaryRadar.range (8 km), even at a station with unlimited range.
  • TCAS only sees transponders. Aircraft with the transponder off never raise a TA or RA. Advisories are for the pilot seat only and do not steer the aircraft.
  • One subscription per player. If the panel, the phone app and the onboard radar want data at the same time, the client subscribes with the panel first, then the onboard radar, then the phone. The phone app shows whichever data is subscribed.
  • Admin groups are ESX only. Config.Admin.groups is checked against xPlayer.getGroup(). On qbx / qb, admins come from Config.Admin.identifiers only.

Not yet verified in-game: the logic is covered by unit tests and stubbed-native smoke tests, and the panel and the phone app were checked in a browser with mock data (see Development). These parts depend on the engine and still need a test on a live server with several clients:

  • Blip sprites, colours and the switch between entity and coordinate blips when an aircraft streams in or out.
  • The TCAS sounds and the climb / descend choice in real flight.
  • The panel's focus handling in a vehicle (F6 twice) and the pin / Escape behaviour.
  • The Flightradar app inside np_phone (the iframe, the SDK messages and Set waypoint).
  • The np_menu radial entries and the callsign dialog.

Next steps ​