StreamingClient

isModelValid

IS_MODEL_VALID0xC0296A2EDF545E92

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

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

Usage

JavaScript
const result = isModelValid(model);
Lua
local result = isModelValid(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.

Returns whether the specified model exists in the game.

Reference

Namespace
Streaming STREAMING
In the game
BOOL IS_MODEL_VALID(Hash model)
Hash
0xC0296A2EDF545E92

Open in the interactive natives reference