GET_ENTITY_SUBMERGED_LEVEL
Get how much of the entity is submerged.
Hash
0x4A77C3F73FD9E831Runtime name
GetEntitySubmergedLevelNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xE81AFC1BC4CC41CESignature
float GET_ENTITY_SUBMERGED_LEVEL(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns float
Description
Get how much of the entity is submerged. 1.0f is whole entity.
Usage
local retval = GetEntitySubmergedLevel(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4A77C3F73FD9E831, entity, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetEntitySubmergedLevel(entity);
// by hash
const retval = Citizen.invokeNative('0x4A77C3F73FD9E831', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x4A77C3F73FD9E831, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.