RedM Natives

IS_MODEL_VALID

Returns whether the specified model is valid

Hash0x392C8D8E07B70EFC
Runtime nameIsModelValid
NamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC0296A2EDF545E92

Signature

BOOL IS_MODEL_VALID(Hash model);

Parameters

NameTypeDescription
modelHash—

Returns BOOL

Description

Returns whether the specified model is valid

Usage

Lua
local retval = IsModelValid(model)

-- always works, by hash
local retval = Citizen.InvokeNative(0x392C8D8E07B70EFC, model, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsModelValid(model);

// by hash
const retval = Citizen.invokeNative('0x392C8D8E07B70EFC', model, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x392C8D8E07B70EFC, model);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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