RedM Natives

UNLOCK_SET_UNLOCKED

Hash0x1B7C5ADA8A6910A0
Runtime nameUnlockSetUnlocked
NamespaceUNLOCK
SideClient
NameOfficial
Docs
Since build1207

Signature

void UNLOCK_SET_UNLOCKED(Hash unlockHash, BOOL toggle);

Parameters

NameTypeDescription
unlockHashHash—
toggleBOOL—

Returns void

Usage

Lua
UnlockSetUnlocked(unlockHash, toggle)

-- always works, by hash
Citizen.InvokeNative(0x1B7C5ADA8A6910A0, unlockHash, toggle)
JavaScript and C#
JavaScript
UnlockSetUnlocked(unlockHash, toggle);

// by hash
Citizen.invokeNative('0x1B7C5ADA8A6910A0', unlockHash, toggle);
C#
Function.Call((Hash)0x1B7C5ADA8A6910A0, unlockHash, toggle);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.