RedM Natives

_IS_TRAIN_INTERIOR_LOADED

Checks whether the entity's interior is currently loaded by the game engine.

Hash0xC2E71D7E0A7B4C89
Runtime nameIsTrainInteriorLoaded
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _IS_TRAIN_INTERIOR_LOADED(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns BOOL

Description

alloc8or RDR3 NativeDB

Checks whether the entity's interior is currently loaded by the game engine.
Mainly used for train carriages. The game can unload distant carriage interiors as an optimization when the player is far away or not standing on the train.

VORPCORE RDR3natives

Checks whether the entity's interior is currently loaded by the game engine.
This is mainly used for train carriages. When the player is far away or not standing on the train, the game unloads interiors of distant carriages as an optimization. If the interior of the entity is currently loaded, this native returns true

Usage

Lua
local retval = IsTrainInteriorLoaded(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC2E71D7E0A7B4C89, entity, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsTrainInteriorLoaded(entity);

// by hash
const retval = Citizen.invokeNative('0xC2E71D7E0A7B4C89', entity, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xC2E71D7E0A7B4C89, entity);
  • 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.