getPlayerTargetingMode
GET_PLAYER_TARGETING_MODE0x875BDD898B99C8CEThe 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.
getPlayerTargetingMode(): numbergetPlayerTargetingMode(): 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 integerReference
- Namespace
- Player PLAYER
- In the game
int GET_PLAYER_TARGETING_MODE()- Hash
0x875BDD898B99C8CE- Introduced
- Game build 3570 legacy numbering