The Lab
UNLOCK native

_UNLOCK_IS_NEW

returns BOOL1 parambuild 1207

Returns true if the unlock identified by unlockHash is currently marked as new, as used for "new item" badges in menus.

Signature

C
BOOL _UNLOCK_IS_NEW(Hash unlockHash); // 0x644166BA7AA49DEA b1207

Parameters

#NameType
1unlockHashHash

Facts

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