From GTA Connected
Jump to navigation Jump to search

Property Server and Client icon-iii.png icon-sa.png Online and Offline Read and Set

Available since Server 1.0.0, Client 1.0.0
float train.trackPosition
The train.trackPosition property is used to fetch or set the track position of the train.


The train.trackPosition property is used via OOP, on types:

Server Train

train Object Userdata type in Lua and Squirrel, or Object type in JS.
trackPosition Property Properties use the dot "." operator in JS, Lua, and Squirrel.


float A floating point number representing the train's track position.
read/set This property can be changed, as well as read.


There aren't any notes for this property.


There aren't any examples for this property.


There isn't any compatibility information for this property.