The Lab
ENTITY native

_IS_ENTITY_ON_TRAIN_TRACK

returns BOOL1 parambuild 1207

Returns true if the entity is on a train track.

Signature

C
BOOL _IS_ENTITY_ON_TRAIN_TRACK(Entity entity); // 0x857ACB0AB4BD0D55 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about _IS_ENTITY_ON_TRAIN_TRACK
Name
_IS_ENTITY_ON_TRAIN_TRACK
Hash
0x857ACB0AB4BD0D55
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x857ACB0AB4BD0D55, -- _IS_ENTITY_ON_TRAIN_TRACK
  PlayerPedId() -- Entity entity
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x857ACB0AB4BD0D55", // _IS_ENTITY_ON_TRAIN_TRACK
  PlayerPedId(), // Entity entity
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x857ACB0AB4BD0D55, // _IS_ENTITY_ON_TRAIN_TRACK
  API.PlayerPedId() // Entity entity
);
All ENTITY natives

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