isPlayerBattleAware
IS_PLAYER_BATTLE_AWARE0x38D28DA81E4E9BF9The 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.
isPlayerBattleAware(player: Player): booleanisPlayerBattleAware(player: Player): booleanUsage
JavaScript
const result = isPlayerBattleAware(player);Lua
local result = isPlayerBattleAware(player)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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