The Lab
VEHICLE native

GET_CURRENT_STATION_FOR_TRAIN

returns int1 parambuild 1207

Returns the current station index of train.

Signature

C
int GET_CURRENT_STATION_FOR_TRAIN(Vehicle train); // 0x86FA6D8B48667D75 b1207

Parameters

#NameType
1trainVehicle

Facts

Facts about GET_CURRENT_STATION_FOR_TRAIN
Name
GET_CURRENT_STATION_FOR_TRAIN
Hash
0x86FA6D8B48667D75
Namespace
Returns
int
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(0x86FA6D8B48667D75, -- GET_CURRENT_STATION_FOR_TRAIN
  0, -- Vehicle train
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x86FA6D8B48667D75", // GET_CURRENT_STATION_FOR_TRAIN
  0, // Vehicle train
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x86FA6D8B48667D75, // GET_CURRENT_STATION_FOR_TRAIN
  0 // Vehicle train
);
All VEHICLE natives

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