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.
- 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
F6panel,/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

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,7600or7700turns 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_radarscanner item at runtime and checks item counts. - Without it: the framework's usable item (add
flight_radarto 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_licenseas 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
vehicleCallsignstate bag, so a unit's livery number shows on the radar.
- A camera active flag on helicopters whose camera is up, from the
helicam_camstate 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.
| Mode | Who gets it | Range |
|---|---|---|
| Onboard | Anyone in an aircraft seat (optionally only with a pilot licence) | 6 km |
| Ground | police, sheriff, ambulance, atc with a minimum grade, on duty, or a Discord role | 12 km |
| Scanner item | Players with the flight_radar item | 4 km |
| Station | The station's jobs standing at a tower console | Unlimited, primary radar |
| Phone | Everyone, or the jobs in Config.Phone.job | 8 km |
| Admin | Identifiers or ESX groups in Config.Admin | Unlimited, 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.CanUseorRegisterAccessCheckcan 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.
| Command | What it does |
|---|---|
/radar · F6 | Opens 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
- The pilot's transponder callsign
vehicleCallsignfrom np_manufacturingConfig.Callsigns.perModel, for examplepolmavasAIR-1- 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.
| Squawk | Meaning |
|---|---|
7500 | Hijack |
7600 | Radio failure |
7700 | General emergency |
- The contact turns red and flashes.
Config.Emergency.notifyJobs(police, ambulance, atc) get an np_hud toast and an np_phone push, and thenp_flightradar:emergencyevent 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.

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

- 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.
| Framework | What it adds |
|---|---|
| es_extended | Jobs and grades, job.onDuty when present (otherwise the job counts), admin groups from xPlayer.getGroup(), the usable flight_radar item |
| qbx_core | Jobs, grades and the duty flag, metadata.callsign as a callsign fallback, the usable item |
| qb-core | Jobs, grades and the duty flag, metadata.callsign as a callsign fallback, the usable item |
| Standalone | Onboard and phone modes, admins by identifier, the scanner item through np_inventory |
| Kind | Supported |
|---|---|
| Inventory | np_inventory, or the framework's usable item |
| Notifications | np_hud, ox_lib, or the native feed |
| Phone | np_phone (store app and push notifications) |
| Licences | np_identification (pilot_license) |
| Discord | np_discord (roles and a log channel) |
| Menus | np_menu (radial entry and transponder submenu) |
| Vehicles | np_manufacturing callsigns, np_helicam camera flag |
Installation
No database, no SQL, nothing to build.
- Enable OneSync (
set onesync on) and put the resource inresources/asnp_flightradar. - 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 - The scanner item: np_inventory registers
flight_radarat runtime. With ESX alone, add aflight_radaritem to your items table and the resource makes it usable. - 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:
| Option | Default |
|---|---|
Config.Framework | 'auto': ESX, then qbx, qb, standalone |
Config.Units | 'aviation' (ft, kt, fpm, NM) or 'metric' |
Config.UpdateInterval | 1000 ms between updates (250 to 5000) |
Config.Ranges | air 6000, ground 12000, item 4000, phone 8000, station and admin unlimited |
Config.Access.jobs | police, sheriff, ambulance, atc from grade 0, on duty |
Config.Access.discordRoles | none |
| Option | Default |
|---|---|
Config.Stations | LSIA Tower, Sandy Shores Airfield, McKenzie Field |
Config.Transponder | on, squawk 7000, copilot may edit |
Config.Emergency | notify police, ambulance, atc; no Discord channel |
Config.Proximity | 600 m × 150 m, 25 s look-ahead, sound on |
Config.Identification | flag unlicensed pilots, licence not required |
Config.Integrations | every 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.