_CREATE_MISSION_TRAIN
configHash: https://alloc8or.re/rdr3/doc/enums/eTrainConfig.txt For more information, see trainconfigs.ymt To make the train AI controlled, set conductor to true and set the speed once.
VEHICLEBuild 1207
Signature
lua
CreateMissionTrain(GetHashKey("..."), 0.0, 0.0, 0.0, true, true, true, true)
-- returns VehicleParameters
| Name | Type | Description |
|---|---|---|
| Hash | — | |
| float | — | |
| float | — | |
| float | — | |
| BOOL | — | |
| BOOL | — | |
| BOOL | — | |
| BOOL | — |
Usage
lua
CreateMissionTrain(GetHashKey("..."), 0.0, 0.0, 0.0, true, true, true, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
