ControlsClient

getLocalPlayerAimState

GET_LOCAL_PLAYER_AIM_STATE0xBB41AFBBBC0A0287

The GTA V native GET_LOCAL_PLAYER_AIM_STATE of the PAD namespace, as LS:MP client scripts call it: the global function getLocalPlayerAimState, in JavaScript and in Lua.

SignatureJavaScript
getLocalPlayerAimState(): number
SignatureLua
getLocalPlayerAimState(): integer

Usage

JavaScript
const result = getLocalPlayerAimState();
Lua
local result = getLocalPlayerAimState()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

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

Hard-coded to return 3 if using KBM, otherwise same behavior as getLocalPlayerGamepadAimState.

Reference

Namespace
Controls PAD
In the game
int GET_LOCAL_PLAYER_AIM_STATE()
Hash
0xBB41AFBBBC0A0287

Open in the interactive natives reference