_UNLOCK_IS_LOOTABLE
Returns true if the unlock identified by unlockHash is flagged as obtainable through looting.
Signature
BOOL _UNLOCK_IS_LOOTABLE(Hash unlockHash); // 0x66BF197E066050DE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | unlockHash | Hash |
Facts
| Name | _UNLOCK_IS_LOOTABLE |
|---|---|
| Hash | 0x66BF197E066050DE |
| 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 = Citizen.InvokeNative(0x66BF197E066050DE, -- _UNLOCK_IS_LOOTABLE
GetHashKey("name") -- Hash unlockHash
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x66BF197E066050DE", // _UNLOCK_IS_LOOTABLE
GetHashKey("name"), // Hash unlockHash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x66BF197E066050DE, // _UNLOCK_IS_LOOTABLE
(uint)API.GetHashKey("name") // Hash unlockHash
);Related UNLOCK natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.