StreamingClientNot in this build

isGameInstalled

IS_GAME_INSTALLED

The GTA V native IS_GAME_INSTALLED of the STREAMING namespace, as LS:MP client scripts call it: the global function isGameInstalled, in JavaScript and in Lua.

SignatureJavaScript
isGameInstalled(): boolean
SignatureLua
isGameInstalled(): boolean
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = isGameInstalled();
Lua
local result = isGameInstalled()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Streaming STREAMING
In the game
BOOL IS_GAME_INSTALLED()

Open in the interactive natives reference