_IS_PED_IN_NAVIGABLE_WATER
Detects if ped is afloat in water like swimming or in a boat (driving or standing on it)
Hash
0xDC88D06719070C39Runtime name
IsPedInNavigableWaterNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_IS_PED_AFLOATSignature
BOOL _IS_PED_IN_NAVIGABLE_WATER(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns BOOL
Description
Detects if ped is afloat in water like swimming or in a boat (driving or standing on it)
Usage
local retval = IsPedInNavigableWater(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDC88D06719070C39, ped, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedInNavigableWater(ped);
// by hash
const retval = Citizen.invokeNative('0xDC88D06719070C39', ped, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.