PedClient

isPedStopped

IS_PED_STOPPED0x530944F6F4B8A214

The GTA V native IS_PED_STOPPED of the PED namespace, as LS:MP client scripts call it: the global function isPedStopped, in JavaScript and in Lua.

SignatureJavaScript
isPedStopped(ped: Ped): boolean
SignatureLua
isPedStopped(ped: Ped): boolean

Usage

JavaScript
const result = isPedStopped(ped);
Lua
local result = isPedStopped(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns true if the ped doesn't do any movement. If the ped is being pushed forwards by using applyForceToEntity for example, the function returns false.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_STOPPED(Ped ped)
Hash
0x530944F6F4B8A214

Open in the interactive natives reference