IS_MODEL_VALID
Returns whether the specified model is valid
Hash
0x392C8D8E07B70EFCRuntime name
IsModelValidNamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xC0296A2EDF545E92Signature
BOOL IS_MODEL_VALID(Hash model);Parameters
| Name | Type | Description |
|---|---|---|
model | Hash | — |
Returns BOOL
Description
Returns whether the specified model is valid
Usage
local retval = IsModelValid(model)
-- always works, by hash
local retval = Citizen.InvokeNative(0x392C8D8E07B70EFC, model, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsModelValid(model);
// by hash
const retval = Citizen.invokeNative('0x392C8D8E07B70EFC', model, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x392C8D8E07B70EFC, 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.