_START_PRELOADED_SCRIPT_BRAIN
Returns threadId
Hash
0x4E4507CC5E4DB869Runtime name
StartPreloadedScriptBrainNamespaceBRAIN
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _START_PRELOADED_SCRIPT_BRAIN(Entity entity, const char* scriptName, int scriptStackSize, BOOL p3);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
scriptName | const char* | — |
scriptStackSize | int | — |
p3 | BOOL | — |
Returns int
Description
Returns threadId
Usage
local retval = StartPreloadedScriptBrain(entity, scriptName, scriptStackSize, p3)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4E4507CC5E4DB869, entity, scriptName, scriptStackSize, p3, Citizen.ResultAsInteger())JavaScript and C#
const retval = StartPreloadedScriptBrain(entity, scriptName, scriptStackSize, p3);
// by hash
const retval = Citizen.invokeNative('0x4E4507CC5E4DB869', entity, scriptName, scriptStackSize, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x4E4507CC5E4DB869, entity, scriptName, scriptStackSize, p3);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.