getHeliBladeCollisionsEnabled | Multi Theft Auto: Wiki Skip to content

getHeliBladeCollisionsEnabled

Client-side
Server-side
Shared

Pair: setHeliBladeCollisionsEnabled

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function gets the state of the helicopter blades collisions on the specified vehicle.

Syntax

getHeliBladeCollisionsEnabled ( )

Code Examples

client

This example shows the blade collisions state

function onVehicleEnter ( seat, jacked )
--If the player entered a helicopter
if ( getVehicleType ( source ) == "Helicopter" ) then
local state = getHeliBladeCollisionsEnabled‎(source )
outputChatBox("Helicopter blades collisions are turned ".. (state and "on" or "off") )
end
end
addEventHandler ( "onClientVehicleEnter", localPlayer, onVehicleEnter )

See Also

Vehicle Functions