StreamingClient

isModelInCdimage

IS_MODEL_IN_CDIMAGE0x35B9E0803292B641

The GTA V native IS_MODEL_IN_CDIMAGE of the STREAMING namespace, as LS:MP client scripts call it: the global function isModelInCdimage, in JavaScript and in Lua.

SignatureJavaScript
isModelInCdimage(model: Hash): boolean
SignatureLua
isModelInCdimage(model: Hash): boolean

Usage

JavaScript
const result = isModelInCdimage(model);
Lua
local result = isModelInCdimage(model)

Parameters

ParameterTypeJavaScriptLua
modelHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Check if model is in cdimage(rpf)

Reference

Namespace
Streaming STREAMING
In the game
BOOL IS_MODEL_IN_CDIMAGE(Hash model)
Hash
0x35B9E0803292B641

Open in the interactive natives reference