The Lab
PED native

_IS_TEXTURE_VALID

returns BOOL1 parambuild 1207

Returns true if the custom ped texture textureId is valid.

Signature

C
BOOL _IS_TEXTURE_VALID(int textureId); // 0x31DC8D3F216D8509 b1207

Parameters

#NameType
1textureIdint

Facts

Facts about _IS_TEXTURE_VALID
Name
_IS_TEXTURE_VALID
Hash
0x31DC8D3F216D8509
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x31DC8D3F216D8509, -- _IS_TEXTURE_VALID
  0 -- int textureId
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x31DC8D3F216D8509", // _IS_TEXTURE_VALID
  0, // int textureId
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x31DC8D3F216D8509, // _IS_TEXTURE_VALID
  0 // int textureId
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.