Skip to main content

Ped::isProne

Client-side function

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 true if the ped is prone, otherwise false.

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}`);