RedM Natives

_SET_PED_IMMERSION_FLAG

Only used in R* Script beat_sharp_shooter Blocks ped from swimming underwater

Hash0x7FB0088E8769CDDB
Runtime nameSetPedImmersionFlag
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_IMMERSION_FLAG(Ped ped, BOOL toggle);

Parameters

NameTypeDescription
pedPed—
toggleBOOL—

Returns void

Description

Only used in R* Script beat_sharp_shooter
Blocks ped from swimming underwater

Usage

Lua
SetPedImmersionFlag(ped, toggle)

-- always works, by hash
Citizen.InvokeNative(0x7FB0088E8769CDDB, ped, toggle)
JavaScript and C#
JavaScript
SetPedImmersionFlag(ped, toggle);

// by hash
Citizen.invokeNative('0x7FB0088E8769CDDB', ped, toggle);
C#
Function.Call((Hash)0x7FB0088E8769CDDB, ped, toggle);
  • 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.