isModelValid
IS_MODEL_VALID0xC0296A2EDF545E92The 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.
isModelValid(model: Hash): booleanisModelValid(model: Hash): booleanUsage
JavaScript
const result = isModelValid(model);Lua
local result = isModelValid(model)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
model | Hash | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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