_IS_TEXTURE_IN_DICT
Returns true if the texture txdHash exists in the dictionary dict.
Signature
BOOL _IS_TEXTURE_IN_DICT(Hash txdHash, Hash dict); // 0xA2A51869BDED733B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | txdHash | Hash |
| 2 | dict | Hash |
Facts
| 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.
local result = Citizen.InvokeNative(0xA2A51869BDED733B, -- _IS_TEXTURE_IN_DICT
GetHashKey("name"), -- Hash txdHash
GetHashKey("name") -- Hash dict
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xA2A51869BDED733B", // _IS_TEXTURE_IN_DICT
GetHashKey("name"), // Hash txdHash
GetHashKey("name"), // Hash dict
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xA2A51869BDED733B, // _IS_TEXTURE_IN_DICT
(uint)API.GetHashKey("name"), // Hash txdHash
(uint)API.GetHashKey("name") // Hash dict
);Related GRAPHICS natives
- _CREATE_SWATCH_TEXTURE_DICT
- _DESTROY_SWATCH_TEXTURE_DICT
- _IS_TRACKED_POINT_VALID
- _IS_PROXY_INTERIOR_INDEX_ARTIFICIAL_LIGHTS_ENABLED
- _IS_STATIC_VEG_MODIFIER_ENABLED
- _ANIMPOSTFX_IS_STACKHASH_PLAYING
- _ANIMPOSTFX_IS_TAG_PLAYING
- _GENERATE_SWATCH_TEXTURE
- _GENERATE_SWATCH_TEXTURE_DIRECTLY
- _SET_PHOTO_IN_PHOTOMODE_STAT
- _SET_PLAYER_APPEAR_IN_PHOTO
- ANIMPOSTFX_IS_PRELOADING_BY_STACKHASH
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.