_AWARDS_GET_UNLOCK_CLAIM_DATA
Based on its name and signature, here is our best reading:
Appears to read unlock claim data for the award awardHash from the server response rpcGuid into outUnlockData, returning true on success.
Signature
BOOL _AWARDS_GET_UNLOCK_CLAIM_DATA(Any* rpcGuid, Hash awardHash, int dataIndex, Any* outUnlockData); // 0xB9467E41DAB1CF2C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | rpcGuid | Any* (out pointer) |
| 2 | awardHash | Hash |
| 3 | dataIndex | int |
| 4 | outUnlockData | Any* (out pointer) |
Facts
| Name | _AWARDS_GET_UNLOCK_CLAIM_DATA |
|---|---|
| Hash | 0xB9467E41DAB1CF2C |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, rpcGuid, outUnlockData = Citizen.InvokeNative(0xB9467E41DAB1CF2C, -- _AWARDS_GET_UNLOCK_CLAIM_DATA
Citizen.PointerValueInt(), -- Any* rpcGuid
GetHashKey("name"), -- Hash awardHash
0, -- int dataIndex
Citizen.PointerValueInt(), -- Any* outUnlockData
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, rpcGuid, outUnlockData] = Citizen.invokeNative("0xB9467E41DAB1CF2C", // _AWARDS_GET_UNLOCK_CLAIM_DATA
Citizen.pointerValueInt(), // Any* rpcGuid
GetHashKey("name"), // Hash awardHash
0, // int dataIndex
Citizen.pointerValueInt(), // Any* outUnlockData
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var rpcGuidArg = new OutputArgument();
var outUnlockDataArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xB9467E41DAB1CF2C, // _AWARDS_GET_UNLOCK_CLAIM_DATA
rpcGuidArg, // Any* rpcGuid
(uint)API.GetHashKey("name"), // Hash awardHash
0, // int dataIndex
outUnlockDataArg // Any* outUnlockData
);
int rpcGuid = rpcGuidArg.GetResult<int>();
int outUnlockData = outUnlockDataArg.GetResult<int>();Related SCRIPT natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.