isPedStopped
IS_PED_STOPPED0x530944F6F4B8A214The 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.
isPedStopped(ped: Ped): booleanisPedStopped(ped: Ped): booleanUsage
JavaScript
const result = isPedStopped(ped);Lua
local result = isPedStopped(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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