PlayerClientNot in this build

getPlayerTargetingMode

GET_PLAYER_TARGETING_MODE0x875BDD898B99C8CE

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

SignatureJavaScript
getPlayerTargetingMode(): number
SignatureLua
getPlayerTargetingMode(): integer
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

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

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Player PLAYER
In the game
int GET_PLAYER_TARGETING_MODE()
Hash
0x875BDD898B99C8CE
Introduced
Game build 3570 legacy numbering

Open in the interactive natives reference