The Lab
ENTITY native

GET_ENTITY_SUBMERGED_LEVEL

returns float1 parambuild 1207

Returns how much of the entity is submerged, from 0.0 to 1.0.

Signature

C
float GET_ENTITY_SUBMERGED_LEVEL(Entity entity); // 0x4A77C3F73FD9E831 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about GET_ENTITY_SUBMERGED_LEVEL
Name
GET_ENTITY_SUBMERGED_LEVEL
Hash
0x4A77C3F73FD9E831
Namespace
Returns
float
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x4A77C3F73FD9E831, -- GET_ENTITY_SUBMERGED_LEVEL
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x4A77C3F73FD9E831", // GET_ENTITY_SUBMERGED_LEVEL
  PlayerPedId(), // Entity entity
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x4A77C3F73FD9E831, // GET_ENTITY_SUBMERGED_LEVEL
  API.PlayerPedId() // Entity entity
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.