isVehicleOnGround | Multi Theft Auto: Wiki Skip to content

isVehicleOnGround

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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


Checks to see if a vehicle has contact with the ground.

Note

This function has a few issues, see below. Consider using the clientside function isVehicleWheelOnGround instead.

Syntax

isVehicleOnGround ( )

Code Examples

server
function checkVState ( vehicle, seat, jacked )
vehName = getVehicleName ( vehicle )
if isVehicleOnGround ( vehicle ) == false then
outputChatBox ( "You jumped out of a "..vehName.."!", source, 255, 0, 0 )
end
end
addEventHandler ( "onPlayerVehicleExit", getRootElement(), checkVState )

Issues

ID Description
471 isVehicleOnGround sometimes returns false incorrectly
2093 isVehicleOnGround does not work after setVehicleHandling

See Also

Vehicle Functions