The Lab
ENTITY native

SET_ENTITY_AS_MISSION_ENTITY

returns void3 paramsbuild 1207

Marks the entity as a mission entity owned by the calling script so it is not cleaned up automatically.

Required before deleting entities your script did not create.

Signature

C
void SET_ENTITY_AS_MISSION_ENTITY(Entity entity, BOOL scriptHostObject, BOOL grabFromOtherScript); // 0xDC19C288082E586E b1207

Parameters

#NameType
1entityEntity
2scriptHostObjectBOOL
3grabFromOtherScriptBOOL

Facts

Facts about SET_ENTITY_AS_MISSION_ENTITY
Name
SET_ENTITY_AS_MISSION_ENTITY
Hash
0xDC19C288082E586E
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xDC19C288082E586E, -- SET_ENTITY_AS_MISSION_ENTITY
  PlayerPedId(), -- Entity entity
  false, -- BOOL scriptHostObject
  false -- BOOL grabFromOtherScript
)
JavaScript
Citizen.invokeNative("0xDC19C288082E586E", // SET_ENTITY_AS_MISSION_ENTITY
  PlayerPedId(), // Entity entity
  false, // BOOL scriptHostObject
  false // BOOL grabFromOtherScript
);
C#
Function.Call((Hash)0xDC19C288082E586E, // SET_ENTITY_AS_MISSION_ENTITY
  API.PlayerPedId(), // Entity entity
  false, // BOOL scriptHostObject
  false // BOOL grabFromOtherScript
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.