The Lab
UNLOCK native

_UNLOCK_IS_UNLOCK_FLAG_SET

returns BOOL2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Returns true if the given flag is set on the unlock identified by unlockHash.

Signature

C
BOOL _UNLOCK_IS_UNLOCK_FLAG_SET(Hash unlockHash, int flag); // 0x6B6369647F26F09F b1207

Parameters

#NameType
1unlockHashHash
2flagint

Facts

Facts about _UNLOCK_IS_UNLOCK_FLAG_SET
Name
_UNLOCK_IS_UNLOCK_FLAG_SET
Hash
0x6B6369647F26F09F
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x6B6369647F26F09F, -- _UNLOCK_IS_UNLOCK_FLAG_SET
  GetHashKey("name"), -- Hash unlockHash
  0 -- int flag
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x6B6369647F26F09F", // _UNLOCK_IS_UNLOCK_FLAG_SET
  GetHashKey("name"), // Hash unlockHash
  0, // int flag
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x6B6369647F26F09F, // _UNLOCK_IS_UNLOCK_FLAG_SET
  (uint)API.GetHashKey("name"), // Hash unlockHash
  0 // int flag
);
All UNLOCK natives

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