ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getTrainDirection

Function

getTrainDirection

ServerVehiclesIdentical to MTA:SA

Returns the direction stored with setTrainDirection (true by default).

Syntax

bool getTrainDirection(vehicle element)

Arguments

elementvehicle
The train.

Returns

The stored value.

Example

local train = createVehicle(538, 1700, -1950, 14)
outputDebugString(tostring(getTrainDirection(train)))

See also