PedClient

isPedSwimmingUnderWater

IS_PED_SWIMMING_UNDER_WATER0xC024869A53992F34

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_SWIMMING_UNDER_WATER(Ped ped)
Hash
0xC024869A53992F34

Open in the interactive natives reference