SetTrainTrack

From Multi Theft Auto: Wiki
Revision as of 19:38, 19 May 2019 by Qaisjp (talk | contribs) (delete -> disabled)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Dialog-warning.png Function has been disabled.

Sets the track of a train

Syntax

bool setTrainTrack ( vehicle train, int track )

OOP Syntax Help! I don't understand this!

Method: vehicle:setTrack(...)
Variable: .track
Counterpart: getTrainTrack


Required Arguments

  • train: the train of which to set the track
  • track: the track where you want to set the train. It can be 0, 1, 2 or 3.

Returns

Returns true if the track was set to the train, false otherwise.

Example

This server-side script allows the player to change the track of their train.

Click to expand [+]
Procedural
Click to expand [+]
Object Oriented

See Also