RedM Natives

DOES_TEXTURE_EXIST

In compare to 0x31DC8D3F216D8509 return true if texture its created when 0x31DC8D3F216D8509 return true if you put there any id in valid range

Hash0x8B25BC20
Runtime nameDoesTextureExist
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

bool DOES_TEXTURE_EXIST(int textureId);

Parameters

NameTypeDescription
textureIdint

texture id created by 0xC5E7204F322E49EB.

Returns bool

Description

Cfx.re native reference

In compare to 0x31DC8D3F216D8509 return true if texture its created when 0x31DC8D3F216D8509 return true if you put there any id in valid range

Usage

Lua
local retval = DoesTextureExist(textureId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x8b25bc20, textureId, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DoesTextureExist(textureId);

// by hash
const retval = Citizen.invokeNative('0x8b25bc20', textureId, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x8b25bc20, textureId);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.