_IS_TRAIN_INTERIOR_LOADED
Checks whether the entity's interior is currently loaded by the game engine.
0xC2E71D7E0A7B4C89IsTrainInteriorLoadedSignature
BOOL _IS_TRAIN_INTERIOR_LOADED(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns BOOL
Description
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.
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
local retval = IsTrainInteriorLoaded(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xC2E71D7E0A7B4C89, entity, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsTrainInteriorLoaded(entity);
// by hash
const retval = Citizen.invokeNative('0xC2E71D7E0A7B4C89', entity, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.