isPedOnGround | Multi Theft Auto: Wiki Skip to content

isPedOnGround

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.


This function is used to determine whether or not a ped is on the ground. This is for on-foot usage only.

Syntax

isPedOnGround ( )

Code Examples

server

This example checks if the player who enters the 'amiflying' command is on the ground and outputs a message.

function isHeFlying ( sourcePlayer )
if isPedOnGround ( sourcePlayer ) then
outputChatBox ( "No, you're not flying, you're just stoned!", sourcePlayer )
else
outputChatBox ( "Is it a bird, is it a plane... No it's " .. getPlayerName ( sourcePlayer ) .. "!", sourcePlayer )
end
end
addCommandHandler ( "amiflying", isHeFlying )

Issues

ID Description
534 isPedOnGround issues

See Also