isPlayerPlaying
IS_PLAYER_PLAYING0x5E9564D8246B909AThe GTA V native IS_PLAYER_PLAYING of the PLAYER namespace, as LS:MP client scripts call it: the global function isPlayerPlaying, in JavaScript and in Lua.
isPlayerPlaying(player: Player): booleanisPlayerPlaying(player: Player): booleanUsage
JavaScript
const result = isPlayerPlaying(player);Lua
local result = isPlayerPlaying(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.
Checks whether the specified player has a Ped, the Ped is not dead, is not injured and is not arrested.
Reference
- Namespace
- Player PLAYER
- In the game
BOOL IS_PLAYER_PLAYING(Player player)- Hash
0x5E9564D8246B909A