The Lab
UNLOCK native

_UNLOCK_SET_NEW

returns void2 paramsbuild 1207

Sets or clears the "new" marker on the unlock identified by unlockHash according to toggle.

Signature

C
void _UNLOCK_SET_NEW(Hash unlockHash, BOOL toggle); // 0xA6D79C7AEF870A99 b1207

Parameters

#NameType
1unlockHashHash
2toggleBOOL

Facts

Facts about _UNLOCK_SET_NEW
Name
_UNLOCK_SET_NEW
Hash
0xA6D79C7AEF870A99
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0xA6D79C7AEF870A99, -- _UNLOCK_SET_NEW
  GetHashKey("name"), -- Hash unlockHash
  false -- BOOL toggle
)
JavaScript
Citizen.invokeNative("0xA6D79C7AEF870A99", // _UNLOCK_SET_NEW
  GetHashKey("name"), // Hash unlockHash
  false // BOOL toggle
);
C#
Function.Call((Hash)0xA6D79C7AEF870A99, // _UNLOCK_SET_NEW
  (uint)API.GetHashKey("name"), // Hash unlockHash
  false // BOOL toggle
);
All UNLOCK natives

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