RedM Natives

_PRELOAD_ENTITY_INTERIOR

Enables or disables preloading for an entity interior.

Hash0x6C31B06E91518269
Runtime namePreloadEntityInterior
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _PRELOAD_ENTITY_INTERIOR(Entity entity, BOOL toggle);

Parameters

NameTypeDescription
entityEntity—
toggleBOOL—

Returns void

Description

alloc8or RDR3 NativeDB

Enables or disables preloading for an entity interior.
Used to force-load interiors for train carriages that the engine disabled due to distance-based optimization.
This does not affect entities whose interiors are already managed by the engine because they are close to the player.

VORPCORE RDR3natives

This native can enable interiors for train carriages that the game engine has disabled due to distance-based optimization.

Usage

Lua
PreloadEntityInterior(entity, toggle)

-- always works, by hash
Citizen.InvokeNative(0x6C31B06E91518269, entity, toggle)
JavaScript and C#
JavaScript
PreloadEntityInterior(entity, toggle);

// by hash
Citizen.invokeNative('0x6C31B06E91518269', entity, toggle);
C#
Function.Call((Hash)0x6C31B06E91518269, entity, toggle);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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