The Lab
UNLOCK native

UNLOCK_IS_UNLOCKED

returns BOOL1 parambuild 1207

Returns true if the unlock identified by unlockHash has been unlocked.

Signature

C
BOOL UNLOCK_IS_UNLOCKED(Hash unlockHash); // 0xC4B660C7B6040E75 b1207

Parameters

#NameType
1unlockHashHash

Facts

Facts about UNLOCK_IS_UNLOCKED
Name
UNLOCK_IS_UNLOCKED
Hash
0xC4B660C7B6040E75
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(0xC4B660C7B6040E75, -- UNLOCK_IS_UNLOCKED
  GetHashKey("name") -- Hash unlockHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xC4B660C7B6040E75", // UNLOCK_IS_UNLOCKED
  GetHashKey("name"), // Hash unlockHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xC4B660C7B6040E75, // UNLOCK_IS_UNLOCKED
  (uint)API.GetHashKey("name") // Hash unlockHash
);
All UNLOCK natives

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