PedClient

isPedSwimming

IS_PED_SWIMMING0x9DE327631295B4C2

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_SWIMMING(Ped ped)
Hash
0x9DE327631295B4C2

Open in the interactive natives reference