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
Signature
bool DOES_TEXTURE_EXIST(int textureId);Parameters
| Name | Type | Description |
|---|---|---|
textureId | int | texture id created by |
Returns bool
Description
In compare to 0x31DC8D3F216D8509 return true if texture its created when 0x31DC8D3F216D8509 return true if you put there any id in valid range
Usage
local retval = DoesTextureExist(textureId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x8b25bc20, textureId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesTextureExist(textureId);
// by hash
const retval = Citizen.invokeNative('0x8b25bc20', textureId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x8b25bc20, textureId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.