Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CreateMissionTrain.md #791

Merged
merged 3 commits into from
Jul 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions VEHICLE/CreateMissionTrain.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,27 @@ ns: VEHICLE
Vehicle CREATE_MISSION_TRAIN(int variation, float x, float y, float z, BOOL direction);
```

Train models must be [requested](#_0x963D27A58DF860AC) before use. See trains.xml for freight and metro variations.
## Parameters
* **variation**: Train id (see below for more information)
* **x**: Spawn coordinate X component.
* **y**: Spawn coordinate Y component.
* **z**: Spawn coordinate Z component.
* **direction**: The direction in which the train will go (true or false)

```
NativeDB Added Parameter 6: Any p5
NativeDB Added Parameter 7: Any p6
```
Train models must be [requested](#_0x963D27A58DF860AC) before use. See trains.xml in your GTA V folder to change the varations of the trains
Rytrak marked this conversation as resolved.
Show resolved Hide resolved

### Train Models:
* freight
* freightcar
### Train Models and variation id:
* freight **id: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,23** - Different types of carriage (do not forget to [request](#_0x963D27A58DF860AC) the carriages! (18: no carriage) (8: long train)
* metrotrain **id: 21,24** - I recommend the 24 to get the carriage

### Carriage Models:
* freightcar
* freightcar2 (Added v2372)
* freightcont1
* freightcont2
* freightgrain
* metrotrain
* tankercar

## Parameters
* **variation**:
* **x**:
* **y**:
* **z**:
* **direction**:

## Return value
A script handle for the train, or 0 if the train failed to be created.