The Lab
VEHICLE native

_DOES_TRAIN_EXIST_ON_TRACK

returns BOOL1 parambuild 1207

Returns true if a train exists on track trackIndex.

Signature

C
BOOL _DOES_TRAIN_EXIST_ON_TRACK(int trackIndex); // 0xC29996A337BDD099 b1207

Parameters

#NameType
1trackIndexint

Facts

Facts about _DOES_TRAIN_EXIST_ON_TRACK
Name
_DOES_TRAIN_EXIST_ON_TRACK
Hash
0xC29996A337BDD099
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(0xC29996A337BDD099, -- _DOES_TRAIN_EXIST_ON_TRACK
  0 -- int trackIndex
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xC29996A337BDD099", // _DOES_TRAIN_EXIST_ON_TRACK
  0, // int trackIndex
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xC29996A337BDD099, // _DOES_TRAIN_EXIST_ON_TRACK
  0 // int trackIndex
);
All VEHICLE natives

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