Ped::isProne
JavaScript
Summary
Checks if the specified ped is currently in a prone position.
Required Parameters
- ped: number - The ped's handle or identifier.
Return Value
- 'boolean' - Returns
trueif the ped is prone, otherwisefalse.
Syntax
mp.game.ped.isProne(ped);
Example
// Example: Check if the player's ped is prone
const playerPed = mp.players.local.handle;
const isPlayerProne = mp.game.ped.isProne(playerPed);
mp.gui.chat.push(`Player prone: ${isPlayerProne}`);