GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
Hash
0xA6817C110B830EADRuntime name
GetEntityPlayerIsFreeAimingAtNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x2975C866E6713290Signature
BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity* entity);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
entity | Entity* | — |
Returns BOOL
Usage
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#
const [retval, entity] = GetEntityPlayerIsFreeAimingAt(player, entity);
// by hash
const [retval, entity] = Citizen.invokeNative('0xA6817C110B830EAD', player, Citizen.pointerValueIntInitialized(entity), Citizen.returnResultAnyway());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.