RedM Natives

IS_PED_SWIMMING_UNDER_WATER

Hash0xC024869A53992F34
Runtime nameIsPedSwimmingUnderWater
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC024869A53992F34

Signature

BOOL IS_PED_SWIMMING_UNDER_WATER(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns BOOL

Usage

Lua
local retval = IsPedSwimmingUnderWater(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC024869A53992F34, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedSwimmingUnderWater(ped);

// by hash
const retval = Citizen.invokeNative('0xC024869A53992F34', ped, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xC024869A53992F34, ped);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.