Helicopter Camera
Guides for Frozen Scripts Helicopter Camera: adding aircraft, fitting the UI around your HUD, controller binds, and the export and events.
Helicopter Camera is our FLIR-style camera for helicopters and planes in FiveM. Start with the page you need:
- Adding custom helicopters: put any aircraft in the config, set where the camera sits and give it a label.
- Moving the UI above the minimap: fix the zoom bar when a custom HUD changes the minimap.
- Adding controller inputs: let players use a gamepad for markers, the spotlight and rappelling.
- Exports and Events: connect the camera to your HUD or other scripts.
Framework and permissions
The resource is called fz_helicam. It detects Qbox, QBCore and ESX on its own (Config.Framework = "auto") and runs standalone on anything else. To control who can open the camera, use one of these in config.lua:
Config.WhitelistedJobs: jobs and minimum grades, e.g.{ ['police'] = 2 }(Qbox, QBCore, ESX).Config.AcePermission: an ACE permission, e.g."fz_helicam.use"withadd_ace group.police fz_helicam.use allowin server.cfg (any framework).Config.CustomJobCheck: your own function for vRP, ox_core, ND_Core or a custom framework.
Notifications follow Config.Notify: ox_lib if it's running, otherwise your framework's notifications, otherwise the GTA feed.
More in this guide
- Adding custom helicoptersAdd any helicopter or plane to Config.Helicopters in Helicopter Camera, then set its camera offset and per-livery labels.
- Moving the UI above the minimapRaise or lower the Helicopter Camera zoom bar with Config.ZoomBarOffset when your HUD moves or resizes the minimap.
- Adding controller inputsSet up a gamepad for Helicopter Camera: looking and zooming work out of the box, and players bind the rest under FiveM key bindings.
- ExportsThe InHelicam client export in Helicopter Camera returns true while the local player is looking through the camera.
- EventsHelicopter Camera fires fz_helicam:enteredCamera and fz_helicam:leftCamera on the client, with the helicopter network id, for HUD toggles and more.
Still stuck?Ask on our Discord