_UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO
Based on its name and signature, here is our best reading:
Fills the outData buffer with role-related unlock information for the unlock identified by unlockHash.
Signature
void _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO(Hash unlockHash, Any* outData); // 0x7C1C2062CFAD06FE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | unlockHash | Hash |
| 2 | outData | Any* (out pointer) |
Facts
| Name | _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO |
|---|---|
| Hash | 0x7C1C2062CFAD06FE |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local outData = Citizen.InvokeNative(0x7C1C2062CFAD06FE, -- _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO
GetHashKey("name"), -- Hash unlockHash
Citizen.PointerValueInt() -- Any* outData
)
print(outData)const outData = Citizen.invokeNative("0x7C1C2062CFAD06FE", // _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO
GetHashKey("name"), // Hash unlockHash
Citizen.pointerValueInt() // Any* outData
);
console.log(outData)var outDataArg = new OutputArgument();
Function.Call((Hash)0x7C1C2062CFAD06FE, // _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO
(uint)API.GetHashKey("name"), // Hash unlockHash
outDataArg // Any* outData
);
int outData = outDataArg.GetResult<int>();Related UNLOCK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.