# PED::_IS_TEXTURE_VALID

- **Hash:** `0x31DC8D3F216D8509`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `IsTextureValid`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/_IS_TEXTURE_VALID

## Signature

```c
BOOL _IS_TEXTURE_VALID(int textureId);
```

## Parameters

- `textureId` (`int`)

## Returns

`BOOL`

## Description

*Source: femga rdr3_discoveries*

```
// 0x31DC8D3F216D8509
BOOL _HAS_PED_TEXTURE_CREATED(int pedTextureId)
```

## Usage

### Lua

```lua
local retval = IsTextureValid(textureId)

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

### JavaScript

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

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

### C#

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

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB, femga rdr3_discoveries.*
