IS_MODEL_IN_CDIMAGE
Returns whether the specified model exists in the game.
Hash
0xD6F3B6D7716CFF8ERuntime name
IsModelInCdimageNamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x35B9E0803292B641Signature
BOOL IS_MODEL_IN_CDIMAGE(Hash model);Parameters
| Name | Type | Description |
|---|---|---|
model | Hash | — |
Returns BOOL
Description
Returns whether the specified model exists in the game.
Usage
local retval = IsModelInCdimage(model)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD6F3B6D7716CFF8E, model, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsModelInCdimage(model);
// by hash
const retval = Citizen.invokeNative('0xD6F3B6D7716CFF8E', model, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xD6F3B6D7716CFF8E, model);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.