The Lab
UNLOCK native

_UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO

returns void2 paramsbuild 1207

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

C
void _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO(Hash unlockHash, Any* outData); // 0x7C1C2062CFAD06FE b1207

Parameters

#NameType
1unlockHashHash
2outDataAny* (out pointer)

Facts

Facts about _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO
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.

Lua
local outData = Citizen.InvokeNative(0x7C1C2062CFAD06FE, -- _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO
  GetHashKey("name"), -- Hash unlockHash
  Citizen.PointerValueInt() -- Any* outData
)
print(outData)
JavaScript
const outData = Citizen.invokeNative("0x7C1C2062CFAD06FE", // _UNLOCK_GET_ITEM_ROLE_UNLOCK_INFO
  GetHashKey("name"), // Hash unlockHash
  Citizen.pointerValueInt() // Any* outData
);
console.log(outData)
C#
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>();
All UNLOCK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.