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

Function

isTrainDerailable

ServerVehiclesIdentical to MTA:SA

Returns the value stored with setTrainDerailable (true by default).

Syntax

bool isTrainDerailable(vehicle element)

Arguments

elementvehicle
The train.

Returns

The stored value.

Example

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

See also