DLCClient

isDlcPresent

IS_DLC_PRESENT0x812595A0644CE1DE

The GTA V native IS_DLC_PRESENT of the DLC namespace, as LS:MP client scripts call it: the global function isDlcPresent, in JavaScript and in Lua.

SignatureJavaScript
isDlcPresent(dlcHash: Hash): boolean
SignatureLua
isDlcPresent(dlcHash: Hash): boolean

Usage

JavaScript
const result = isDlcPresent(dlcHash);
Lua
local result = isDlcPresent(dlcHash)

Parameters

ParameterTypeJavaScriptLua
dlcHashHashnumberinteger

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.

Returns true if the given DLC pack is present.

Reference

Namespace
DLC DLC
In the game
BOOL IS_DLC_PRESENT(Hash dlcHash)
Hash
0x812595A0644CE1DE

Open in the interactive natives reference