PedClient

isPedDiving

IS_PED_DIVING0x5527B8246FEF9B11

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_DIVING(Ped ped)
Hash
0x5527B8246FEF9B11

Open in the interactive natives reference