DLCClientNot in this build

tryGetUserEntitlements

TRY_GET_USER_ENTITLEMENTS

The 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.

SignatureJavaScript
tryGetUserEntitlements(entitlements: null): boolean
SignatureLua
tryGetUserEntitlements(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

ParameterTypeJavaScriptLua
entitlementsAny*nullnil

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
DLC DLC
In the game
BOOL TRY_GET_USER_ENTITLEMENTS(Any* entitlements)

Open in the interactive natives reference