Yeah, that’s a known issue, and I will fix it soon™. A fix for now as you mentioned would be to change from controls 40 & 41 to some other controls.
have a custom heli I’m trying to add using the camera. Says the model doesn’t have one. Is there a way to add a camera to said model or is it not possible?
hello, I have a problem with the helicam script, on the helicos addon I do not have a spotlight and night and thermal vision.
Anyone know how to do it??
Hello!
Either you need to allow every helicopter to have a camera by setting Config.CanUseAnyHelicopter
to true
, or you need to add the model of the helicopter/plane inside Config.Helicopters
.
Have you disabled the night vision/thermal vision or spotlights in the config (Config.AllowSpotlight
, Config.AllowNightVision
and Config.AllowThermal
)? If that is the case you need add the following when adding a helicopter:
nightvision = true,
thermalvision = true,
spotlight = true
So the the table inside Config.Helicopters
looks like this:
[`myhelicopter`] = {
offset = vector3(0.0, 2.65, -1.0),
nightvision = true,
thermalvision = true,
spotlight = true
},
Those variables will overwrite the global allowed/disallowed option.
Hello, even by adding the name of the helicopters correctly, abseiling remains unusable on certain helicopters
Does the helicopter support rappelling? It needs to have the FLAG_ALLOWS_RAPPEL
flag (as well as the correct vehicle bones) for it to work, that’s just how gta 5 does it.
Is there a way to make it so pushing the left joystick on a controller forward and back not zoom?
What does the Searchlight look like in action? I know from other scripts that it tends to stutter from the outside, so it doesn’t have fluid movements
The best public examples I could find are these two:
From 16:15 and out:
It’s not 100% smooth, but it’s pretty close, the smoothing is something that’s been on my todo list for quite some time now, so I’ll eventually come around to making more smooth than it is today.
Yes, but you’ll have to change the control at lines 421 and 424 in client.lua. Here is a list of the fivem controls: Controls - Cfx.re Docs
I’ll come around to fixing this soon™
I’ve already bought it haha. Would be cool if you could make it even smoother. I also noticed that when you land with the helicopter and access the camera, you can look under the map. But I can’t say whether that has anything to do with the configuration or something like that
Very nice script!
That depends on the helicopter and what you have configured for it. None of the vanilla helicopters should be able to see under the ground (as far as I have experienced), so most likely you just need to change the position of the camera.
How do I get the vehicle ID to put the script into the helicopter?
It’s the model name (spawn name), you can then either put that inside backticks (`) or use the GetHashKey native to get the hash from the model name.
Hey, is it possible to add the light corona emitting from the helicopter? (picture)
Hello!
This has been requested before, but the problem is that creating coronas (as the game calls them) is not possible through natives, as far as I’m aware. It very well could be possible trough ScriptHook or the C# wrapper, but I’ve yet to try it out. (I also gave some turret natives a try without luck)
While flying with 2 persons co pilot get an Reliable network event overflow crash. How to fix it?
Hmm… well, then there are too many events going back and forth between the server and the client. In the helicam script, the client sends an event to the server when you enter the camera, exit the camera, toggle the spotlight or add/remove a marker.
Unless you are spamming any of those, they shouldn’t ever become a problem. The best way to check if this is the case is to open up the F8 console and click Tools>Network>Network Event Log
. You should be able to see what events are getting sent and how much data they include.
If there are events with a helicam:
prefix that seems to have a large amount of data, then you might want to change the TriggerServerEvent functions over to TriggerLatentServerEvent (even though I don’t think that should be the case).
If the event log doesn’t give you any clues, you could try changing the wait time inside the SpotlightThread
function (change Wait(25)
to something like Wait(50)
) and see if it fixes it.