Adding custom helicopters
Add any helicopter or plane to Config.Helicopters in Helicopter Camera, then set its camera offset and per-livery labels.
On this page
Every aircraft that can use the camera is listed in Config.Helicopters in config.lua. Each entry is keyed by the vehicle model. You can write the key in any of these ways:
[1735155578] = {} -- the model hash as a number
[`c3b206l`] = {} -- the spawn name in backticks
[GetHashKey("c3b206l")] = {} -- the spawn name through GetHashKeyAn empty entry is enough to turn the camera on for that aircraft. It won't look right yet, though: the camera uses a default position and the top-left label always reads "FLIR SYSTEMS". The two optional settings below fix that.
Camera position (offset)
offset moves the camera relative to the centre of the aircraft. It has to be a vector3 in metres:
- x: left (negative) / right (positive)
- y: back (negative) / forward (positive)
- z: down (negative) / up (positive)
[`c3b206l`] = {
offset = vector3(0.0, 3.0, -0.35)
}Change the values a little at a time and check in game until the view sits where the camera is on the model.
On-screen label (labels)
labels sets the text in the top-left corner of the camera. You can set it with or without an offset. Each key is a livery index, so different liveries of the same aircraft can show different names. If you only want one label, use 0:
[`c3b206l`] = {
offset = vector3(0.0, 3.0, -0.35),
labels = {
[0] = "BLAINE COUNTY SHERIFFS OFFICE"
}
}Restart the resource and the aircraft is ready to use.
Still stuck?Ask on our Discord