PlayerClient

hasPlayerLeftTheWorld

HAS_PLAYER_LEFT_THE_WORLD0xD55DDFB47991A294

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

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

Usage

JavaScript
const result = hasPlayerLeftTheWorld(player);
Lua
local result = hasPlayerLeftTheWorld(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Player PLAYER
In the game
BOOL HAS_PLAYER_LEFT_THE_WORLD(Player player)
Hash
0xD55DDFB47991A294

Open in the interactive natives reference