RedM Natives

IS_MODEL_IN_CDIMAGE

Returns whether the specified model exists in the game.

Hash0xD6F3B6D7716CFF8E
Runtime nameIsModelInCdimage
NamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x35B9E0803292B641

Signature

BOOL IS_MODEL_IN_CDIMAGE(Hash model);

Parameters

NameTypeDescription
modelHash—

Returns BOOL

Description

Returns whether the specified model exists in the game.

Usage

Lua
local retval = IsModelInCdimage(model)

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

// by hash
const retval = Citizen.invokeNative('0xD6F3B6D7716CFF8E', model, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xD6F3B6D7716CFF8E, 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.