The Lab
ENTITY native

IS_ENTITY_UPRIGHT

returns BOOL2 paramsbuild 1207

Returns true if the entity is upright within the given angle.

Signature

C
BOOL IS_ENTITY_UPRIGHT(Entity entity, float angle); // 0xF6F6AFD8D4FB2658 b1207

Parameters

#NameType
1entityEntity
2anglefloat

Facts

Facts about IS_ENTITY_UPRIGHT
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.

Lua
local result = Citizen.InvokeNative(0xF6F6AFD8D4FB2658, -- IS_ENTITY_UPRIGHT
  PlayerPedId(), -- Entity entity
  0.0 -- float angle
)
if result then
  -- ...
end
JavaScript
// 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) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xF6F6AFD8D4FB2658, // IS_ENTITY_UPRIGHT
  API.PlayerPedId(), // Entity entity
  0.0f // float angle
);
All ENTITY natives

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