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

Vehicle::getTrainCarriage

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

Corrected p1. it's basically the 'carriage/trailer number'. So if the train has 3 trailers you'd call the native once with a var or 3 times with 1, 2, 3.

Syntax

<syntaxhighlight lang="javascript">vehicle.getTrainCarriage(carriage);</syntaxhighlight>

Required Arguments

  • carriage: int

Return value

  • Entity handle or object

Example

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

See also