Перейти к содержанию

Vehicle::createMissionTrain

Материал из RAGE MP Wiki Archive

Train models HAVE TO be loaded (requested) before you use this.
For variation 15 - request:

freight
freightcar
freightgrain
freightcont1
freightcont2
freighttrailer

Syntax

<syntaxhighlight lang="javascript">mp.game.vehicle.createMissionTrain(variation, x, y, z, direction);</syntaxhighlight>

Required Arguments

  • variation: int
  • x: float
  • y: float
  • z: float
  • direction: Boolean

Return value

  • Vehicle handle or object

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also