ControlsClient

getLocalPlayerGamepadAimState

GET_LOCAL_PLAYER_GAMEPAD_AIM_STATE0x59B9A7AF4C95133C

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

SignatureJavaScript
getLocalPlayerGamepadAimState(): number
SignatureLua
getLocalPlayerGamepadAimState(): integer

Usage

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

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.

Returns the local player's targeting mode. See setPlayerTargetingMode.

Reference

Namespace
Controls PAD
In the game
int GET_LOCAL_PLAYER_GAMEPAD_AIM_STATE()
Hash
0x59B9A7AF4C95133C
Formerly
_GET_LOCAL_PLAYER_AIM_STATE_2

Open in the interactive natives reference