# CFX::DOES_TEXTURE_EXIST

- **Hash:** `0x8B25BC20`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `DoesTextureExist`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/DOES_TEXTURE_EXIST

## Signature

```c
bool DOES_TEXTURE_EXIST(int textureId);
```

## Parameters

- `textureId` (`int`) — texture id created by `0xC5E7204F322E49EB`.

## Returns

`bool`

## Description

*Source: 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

```lua
local retval = DoesTextureExist(textureId)

-- always available, by hash
local retval = Citizen.InvokeNative(0x8b25bc20, textureId, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = DoesTextureExist(textureId);

// by hash
const retval = Citizen.invokeNative('0x8b25bc20', textureId, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x8b25bc20, textureId);
```

*Sources: Cfx.re native reference.*
