RedM Natives

IS_PLAYER_FREE_AIMING_AT_ENTITY

Gets a value indicating whether the specified player is currently aiming freely at the specified entity.

Hash0x8C67C11C68713D25
Runtime nameIsPlayerFreeAimingAtEntity
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3C06B5C839B38F7B

Signature

BOOL IS_PLAYER_FREE_AIMING_AT_ENTITY(Player player, Entity entity);

Parameters

NameTypeDescription
playerPlayer—
entityEntity—

Returns BOOL

Description

Gets a value indicating whether the specified player is currently aiming freely at the specified entity.

Usage

Lua
local retval = IsPlayerFreeAimingAtEntity(player, entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x8C67C11C68713D25, player, entity, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerFreeAimingAtEntity(player, entity);

// by hash
const retval = Citizen.invokeNative('0x8C67C11C68713D25', player, entity, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x8C67C11C68713D25, player, entity);

Sources

alloc8or RDR3 NativeDB

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