[Release] Heli Script

how do i move the spotlight sideways and up and down?

only co-pilot can use the camera

hi this is an amazing script. Tho may I ask if does this work on any add-on vehicles?

Add :
local polmav_hash = GetHashKey("YOUR_VEHICLE")

and replace the previous “function isplayerinpolmav” by :

function IsPlayerInPolmav()
	local lPed = GetPlayerPed(-1)
	local vehicle = GetVehiclePedIsIn(lPed)
	    local vehlist = {"polmav", "YOUR_VEHICLE"}
		for i=1,#vehlist do
			if IsVehicleModel(vehicle, vehlist[i]) then
				 return true
			end
	end
		return false
end

It is. and its pretty simple.

open the heli_client.lua

go to line 152.

There you got something like

function ChangeVision()
	if vision_state == 0 then
		SetNightvision(true)
		vision_state = 1
	elseif vision_state == 1 then
		SetNightvision(false)
		SetSeethrough(true)
		vision_state = 2
	else
		SetSeethrough(false)
		vision_state = 0
	end
end

Just delete the part at line 161 , 162 set vision_state to 0
and also delete line 164 and 165.

this should work.

or just copy this on here and exchange it with the one in the script:

function ChangeVision()
	if vision_state == 0 then
		SetNightvision(true)
		vision_state = 1
	elseif vision_state == 1 then
		SetNightvision(false)
		vision_state = 0
	end
end

really? i’ve got no problem with it. I can use it and im the pilot o_o

is it Possible to add a second Helicopter

1 Like

Any Idea why the Rapple Function dont work on one Model

the spotlight is not working for me?

Alright, so just because no one here has compiled all the things people have added over the 5 years it’s been on here, I did so. And I expanded on it

-- 2017-06-12 FiveM Heli Cam by mraes, version 1.3
-- 2017-06-23 Modified by rjross2013
-- 2017-08-15 Further modified by Loque with credits to the following for tips gleaned from their scripts: Guadmaz's Simple Police Searchlight, devilkkw's Speed Camera, nynjardin's Simple Outlaw Alert and IllidanS4's FiveM Entity Iterators.
-- 2018-04-22 Vehicle Info Expanded to include streetnames by LoirdKillmore
-- 2018-07-03 Vehicle Info Expanded to include heading by Torch
-- 2019-02-09 Rappel Landing fix by Robbster
-- 2022-09-01 Combined previous updates, added multiple-helicopter support, one person use, no rear-seat access (to camera), checks and balances and key-disable (for when in camera use) by BrianTU#0001 

heli.zip (8.4 KB)

if you could put it on github that would be even better so people can PR and help develop it further

1 Like

There you go!

1 Like

just dropped this in but for some reason its not working or throwing any errors, any idea what it might be??

Did you, change the helicopters its for?

I added 3 vanilla ones and the 2 code 3 ones i have