The Lab
GRAPHICS native

_IS_TEXTURE_IN_DICT

returns BOOL2 paramsbuild 1207

Returns true if the texture txdHash exists in the dictionary dict.

Signature

C
BOOL _IS_TEXTURE_IN_DICT(Hash txdHash, Hash dict); // 0xA2A51869BDED733B b1207

Parameters

#NameType
1txdHashHash
2dictHash

Facts

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

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