_IS_ENTITY_UNDERWATER
Returns true if the entity is underwater.
Signature
BOOL _IS_ENTITY_UNDERWATER(Entity entity, BOOL p1); // 0xD4E5C1E93C466127 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | BOOL |
Facts
| Name | _IS_ENTITY_UNDERWATER |
|---|---|
| Hash | 0xD4E5C1E93C466127 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xD4E5C1E93C466127, -- _IS_ENTITY_UNDERWATER
PlayerPedId(), -- Entity entity
false -- BOOL p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xD4E5C1E93C466127", // _IS_ENTITY_UNDERWATER
PlayerPedId(), // Entity entity
false, // BOOL p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD4E5C1E93C466127, // _IS_ENTITY_UNDERWATER
API.PlayerPedId(), // Entity entity
false // BOOL p1
);Related ENTITY natives
- _IS_ENTITY_FROZEN
- _IS_ENTITY_FULLY_LOOTED
- _IS_ENTITY_ON_TRAIN_TRACK
- _IS_ENTITY_OWNED_BY_PERSISTENCE_SYSTEM
- _IS_ENTITY_PLAYING_ANY_ANIM
- IS_ENTITY_A_MISSION_ENTITY
- IS_ENTITY_AT_ENTITY
- IS_ENTITY_ATTACHED_TO_ENTITY
- IS_ENTITY_TOUCHING_ENTITY
- _IS_TRACKED_ENTITY_VISIBLE
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- ATTACH_ENTITY_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.