IS_ENTITY_UPRIGHT
Returns true if the entity is upright within the given angle.
Signature
BOOL IS_ENTITY_UPRIGHT(Entity entity, float angle); // 0xF6F6AFD8D4FB2658 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | angle | float |
Facts
| Name | IS_ENTITY_UPRIGHT |
|---|---|
| Hash | 0xF6F6AFD8D4FB2658 |
| 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(0xF6F6AFD8D4FB2658, -- IS_ENTITY_UPRIGHT
PlayerPedId(), -- Entity entity
0.0 -- float angle
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xF6F6AFD8D4FB2658", // IS_ENTITY_UPRIGHT
PlayerPedId(), // Entity entity
0.0, // float angle
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xF6F6AFD8D4FB2658, // IS_ENTITY_UPRIGHT
API.PlayerPedId(), // Entity entity
0.0f // float angle
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.