isDlcPresent
IS_DLC_PRESENT0x812595A0644CE1DEThe 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.
isDlcPresent(dlcHash: Hash): booleanisDlcPresent(dlcHash: Hash): booleanUsage
JavaScript
const result = isDlcPresent(dlcHash);Lua
local result = isDlcPresent(dlcHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
dlcHash | Hash | 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.
Returns true if the given DLC pack is present.
Reference
- Namespace
- DLC DLC
- In the game
BOOL IS_DLC_PRESENT(Hash dlcHash)- Hash
0x812595A0644CE1DE