RedM Natives

GET_ENTITY_PLAYER_IS_FREE_AIMING_AT

Hash0xA6817C110B830EAD
Runtime nameGetEntityPlayerIsFreeAimingAt
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2975C866E6713290

Signature

BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity* entity);

Parameters

NameTypeDescription
playerPlayer—
entityEntity*—

Returns BOOL

Usage

Lua
local retval, entity = GetEntityPlayerIsFreeAimingAt(player, entity)

-- always works, by hash
local retval, entity = Citizen.InvokeNative(0xA6817C110B830EAD, player, Citizen.PointerValueIntInitialized(entity), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, entity] = GetEntityPlayerIsFreeAimingAt(player, entity);

// by hash
const [retval, entity] = Citizen.invokeNative('0xA6817C110B830EAD', player, Citizen.pointerValueIntInitialized(entity), Citizen.returnResultAnyway());
C#
var entity = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xA6817C110B830EAD, player, entity);
// entity.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.