PlayerClient

isPlayerPlaying

IS_PLAYER_PLAYING0x5E9564D8246B909A

The 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.

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

Usage

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

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

Open in the interactive natives reference