- Documentation
- Server functions
- isTrainDerailable
Function
isTrainDerailable
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)))