UNLOCK_SET_UNLOCKED
Marks the unlock identified by unlockHash as unlocked or locked depending on toggle.
Signature
void UNLOCK_SET_UNLOCKED(Hash unlockHash, BOOL toggle); // 0x1B7C5ADA8A6910A0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | unlockHash | Hash |
| 2 | toggle | BOOL |
Facts
| Name | UNLOCK_SET_UNLOCKED |
|---|---|
| Hash | 0x1B7C5ADA8A6910A0 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x1B7C5ADA8A6910A0, -- UNLOCK_SET_UNLOCKED
GetHashKey("name"), -- Hash unlockHash
false -- BOOL toggle
)Citizen.invokeNative("0x1B7C5ADA8A6910A0", // UNLOCK_SET_UNLOCKED
GetHashKey("name"), // Hash unlockHash
false // BOOL toggle
);Function.Call((Hash)0x1B7C5ADA8A6910A0, // UNLOCK_SET_UNLOCKED
(uint)API.GetHashKey("name"), // Hash unlockHash
false // BOOL toggle
);Related UNLOCK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.