RedM Natives

_IS_TEXTURE_VALID

Hash0x31DC8D3F216D8509
Runtime nameIsTextureValid
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _IS_TEXTURE_VALID(int textureId);

Parameters

NameTypeDescription
textureIdint—

Returns BOOL

Description

femga rdr3_discoveries · research notes

// 0x31DC8D3F216D8509
BOOL _HAS_PED_TEXTURE_CREATED(int pedTextureId)

Usage

Lua
local retval = IsTextureValid(textureId)

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

// by hash
const retval = Citizen.invokeNative('0x31DC8D3F216D8509', textureId, Citizen.returnResultAnyway());
C#
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

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