UNLOCK_SET_UNLOCKED
Hash
0x1B7C5ADA8A6910A0Runtime name
UnlockSetUnlockedNamespaceUNLOCK
SideClient
NameOfficial
Docs
Since build1207
Signature
void UNLOCK_SET_UNLOCKED(Hash unlockHash, BOOL toggle);Parameters
| Name | Type | Description |
|---|---|---|
unlockHash | Hash | — |
toggle | BOOL | — |
Returns void
Usage
UnlockSetUnlocked(unlockHash, toggle)
-- always works, by hash
Citizen.InvokeNative(0x1B7C5ADA8A6910A0, unlockHash, toggle)JavaScript and C#
UnlockSetUnlocked(unlockHash, toggle);
// by hash
Citizen.invokeNative('0x1B7C5ADA8A6910A0', unlockHash, toggle);Function.Call((Hash)0x1B7C5ADA8A6910A0, unlockHash, toggle);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.