RedM Natives

_IS_PED_IN_NAVIGABLE_WATER

Detects if ped is afloat in water like swimming or in a boat (driving or standing on it)

Hash0xDC88D06719070C39
Runtime nameIsPedInNavigableWater
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_IS_PED_AFLOAT

Signature

BOOL _IS_PED_IN_NAVIGABLE_WATER(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns BOOL

Description

Detects if ped is afloat in water like swimming or in a boat (driving or standing on it)

Usage

Lua
local retval = IsPedInNavigableWater(ped)

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

// by hash
const retval = Citizen.invokeNative('0xDC88D06719070C39', ped, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xDC88D06719070C39, ped);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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