DOES_ENTITY_HAVE_PHYSICS
Returns true if the entity has physics.
Signature
BOOL DOES_ENTITY_HAVE_PHYSICS(Entity entity); // 0xA512B3F1B2A0B51C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
Facts
| Name | DOES_ENTITY_HAVE_PHYSICS |
|---|---|
| Hash | 0xA512B3F1B2A0B51C |
| 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(0xA512B3F1B2A0B51C, -- DOES_ENTITY_HAVE_PHYSICS
PlayerPedId() -- Entity entity
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xA512B3F1B2A0B51C", // DOES_ENTITY_HAVE_PHYSICS
PlayerPedId(), // Entity entity
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xA512B3F1B2A0B51C, // DOES_ENTITY_HAVE_PHYSICS
API.PlayerPedId() // Entity entity
);Related ENTITY natives
- DOES_ENTITY_HAVE_DRAWABLE
- DOES_ENTITY_BELONG_TO_THIS_SCRIPT
- DOES_ENTITY_EXIST
- _DOES_THREAD_OWN_THIS_ENTITY
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- IS_ENTITY_A_MISSION_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.