tryGetUserEntitlements
TRY_GET_USER_ENTITLEMENTSThe GTA V native TRY_GET_USER_ENTITLEMENTS of the DLC namespace, as LS:MP client scripts call it: the global function tryGetUserEntitlements, in JavaScript and in Lua.
tryGetUserEntitlements(entitlements: null): booleantryGetUserEntitlements(entitlements: nil): 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 = tryGetUserEntitlements(null);Lua
local result = tryGetUserEntitlements(nil)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entitlements | Any* | null | nil |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- DLC DLC
- In the game
BOOL TRY_GET_USER_ENTITLEMENTS(Any* entitlements)