Jump to content

Hydra&rhino lock on fire missiles


Recommended Posts

local List = {
    [520] = true,	--hydra
    [432] = true,	--rhino
}


function checkVehicles(theVehicle)
	local vehicleModel = getElementModel(theVehicle)

	if List[vehicleModel] then
        setVehicleGunsEnabled(theVehicle, false )
	end
end
addEventHandler("onClientPlayerVehicleEnter",getRootElement(),checkVehicles)

 

Link to comment
4 hours ago, TheMOG said:

local List = {
    [520] = true,	--hydra
    [432] = true,	--rhino
}


function checkVehicles(theVehicle)
	local vehicleModel = getElementModel(theVehicle)

	if List[vehicleModel] then
        setVehicleGunsEnabled(theVehicle, false )
	end
end
addEventHandler("onClientPlayerVehicleEnter",getRootElement(),checkVehicles)

 

setVehicleGunsEnabled

Shared function
 

 

Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.

Please use ToggleControl instead.
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...