SET_ENTITY_AS_MISSION_ENTITY
Makes the specified entity (ped, vehicle or object) persistent.
Hash
0xDC19C288082E586ERuntime name
SetEntityAsMissionEntityNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xAD738C3085FE7E11Signature
void SET_ENTITY_AS_MISSION_ENTITY(Entity entity, BOOL scriptHostObject, BOOL grabFromOtherScript);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
scriptHostObject | BOOL | — |
grabFromOtherScript | BOOL | — |
Returns void
Description
Makes the specified entity (ped, vehicle or object) persistent. Persistent entities will not automatically be removed by the engine.
Usage
SetEntityAsMissionEntity(entity, scriptHostObject, grabFromOtherScript)
-- always works, by hash
Citizen.InvokeNative(0xDC19C288082E586E, entity, scriptHostObject, grabFromOtherScript)JavaScript and C#
SetEntityAsMissionEntity(entity, scriptHostObject, grabFromOtherScript);
// by hash
Citizen.invokeNative('0xDC19C288082E586E', entity, scriptHostObject, grabFromOtherScript);Function.Call((Hash)0xDC19C288082E586E, entity, scriptHostObject, grabFromOtherScript);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.