PlayerClient

isPlayerBattleAware

IS_PLAYER_BATTLE_AWARE0x38D28DA81E4E9BF9

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

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

Usage

JavaScript
const result = isPlayerBattleAware(player);
Lua
local result = isPlayerBattleAware(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.

Returns true if an unk value is greater than 0.0f

Reference

Namespace
Player PLAYER
In the game
BOOL IS_PLAYER_BATTLE_AWARE(Player player)
Hash
0x38D28DA81E4E9BF9

Open in the interactive natives reference