RedM Natives

SET_ENTITY_AS_MISSION_ENTITY

Makes the specified entity (ped, vehicle or object) persistent.

Hash0xDC19C288082E586E
Runtime nameSetEntityAsMissionEntity
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xAD738C3085FE7E11

Signature

void SET_ENTITY_AS_MISSION_ENTITY(Entity entity, BOOL scriptHostObject, BOOL grabFromOtherScript);

Parameters

NameTypeDescription
entityEntity—
scriptHostObjectBOOL—
grabFromOtherScriptBOOL—

Returns void

Description

Makes the specified entity (ped, vehicle or object) persistent. Persistent entities will not automatically be removed by the engine.

Usage

Lua
SetEntityAsMissionEntity(entity, scriptHostObject, grabFromOtherScript)

-- always works, by hash
Citizen.InvokeNative(0xDC19C288082E586E, entity, scriptHostObject, grabFromOtherScript)
JavaScript and C#
JavaScript
SetEntityAsMissionEntity(entity, scriptHostObject, grabFromOtherScript);

// by hash
Citizen.invokeNative('0xDC19C288082E586E', entity, scriptHostObject, grabFromOtherScript);
C#
Function.Call((Hash)0xDC19C288082E586E, entity, scriptHostObject, grabFromOtherScript);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.