START_NEW_SCRIPT_WITH_NAME_HASH
Hash
0xEB1C67C3A5333A92Runtime name
StartNewScriptWithNameHashNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xEB1C67C3A5333A92Signature
int START_NEW_SCRIPT_WITH_NAME_HASH(Hash scriptHash, int stackSize);Parameters
| Name | Type | Description |
|---|---|---|
scriptHash | Hash | — |
stackSize | int | — |
Returns int
Usage
local retval = StartNewScriptWithNameHash(scriptHash, stackSize)
-- always works, by hash
local retval = Citizen.InvokeNative(0xEB1C67C3A5333A92, scriptHash, stackSize, Citizen.ResultAsInteger())JavaScript and C#
const retval = StartNewScriptWithNameHash(scriptHash, stackSize);
// by hash
const retval = Citizen.invokeNative('0xEB1C67C3A5333A92', scriptHash, stackSize, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xEB1C67C3A5333A92, scriptHash, stackSize);- 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.