The Lab
INTERIOR native

RETAIN_ENTITY_IN_INTERIOR

returns void2 paramsbuild 1207

Keeps the entity attached to the given interior so it stays inside it when the interior streams.

Signature

C
void RETAIN_ENTITY_IN_INTERIOR(Entity entity, Interior interior); // 0x5BD616735F16BF5C b1207

Parameters

#NameType
1entityEntity
2interiorInterior

Facts

Facts about RETAIN_ENTITY_IN_INTERIOR
Name
RETAIN_ENTITY_IN_INTERIOR
Hash
0x5BD616735F16BF5C
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(0x5BD616735F16BF5C, -- RETAIN_ENTITY_IN_INTERIOR
  PlayerPedId(), -- Entity entity
  0 -- Interior interior
)
JavaScript
Citizen.invokeNative("0x5BD616735F16BF5C", // RETAIN_ENTITY_IN_INTERIOR
  PlayerPedId(), // Entity entity
  0 // Interior interior
);
C#
Function.Call((Hash)0x5BD616735F16BF5C, // RETAIN_ENTITY_IN_INTERIOR
  API.PlayerPedId(), // Entity entity
  0 // Interior interior
);
All INTERIOR natives

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