The Lab
PLAYER native

GET_ENTITY_PLAYER_IS_FREE_AIMING_AT

returns BOOL2 paramsbuild 1207

Writes the entity player is free aiming at into entity, returning true if there is one.

Signature

C
BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity* entity); // 0xA6817C110B830EAD b1207

Parameters

#NameType
1playerPlayer
2entityEntity* (out pointer)

Facts

Facts about GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
Name
GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
Hash
0xA6817C110B830EAD
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, entity = Citizen.InvokeNative(0xA6817C110B830EAD, -- GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
  PlayerId(), -- Player player
  Citizen.PointerValueInt(), -- Entity* entity
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, entity] = Citizen.invokeNative("0xA6817C110B830EAD", // GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
  PlayerId(), // Player player
  Citizen.pointerValueInt(), // Entity* entity
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var entityArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xA6817C110B830EAD, // GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
  API.PlayerId(), // Player player
  entityArg // Entity* entity
);
int entity = entityArg.GetResult<int>();
All PLAYER natives

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