PlayerClient

isPlayerFreeAiming

IS_PLAYER_FREE_AIMING0x2E397FD2ECD37C87

The GTA V native IS_PLAYER_FREE_AIMING of the PLAYER namespace, as LS:MP client scripts call it: the global function isPlayerFreeAiming, in JavaScript and in Lua.

SignatureJavaScript
isPlayerFreeAiming(player: Player): boolean
SignatureLua
isPlayerFreeAiming(player: Player): boolean

Usage

JavaScript
const result = isPlayerFreeAiming(player);
Lua
local result = isPlayerFreeAiming(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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

Reference

Namespace
Player PLAYER
In the game
BOOL IS_PLAYER_FREE_AIMING(Player player)
Hash
0x2E397FD2ECD37C87

Open in the interactive natives reference