_FORCE_TRAIN_WAGON_POPULATION
Enables or disables automatic passenger population on a specific train wagon (carriage). When toggle == true, the game keeps this wagon filled with ambient passengers. If a passenger ped is deleted or removed from the wagon, a new ped is spawned almost immediately to occupy that seat. When toggle == false, the engine stops auto-filling this wagon. After you delete or remove the existing passengers, no new peds will spawn for that wagon until you enable it again with true.
ENTITYBuild 1207
Signature
lua
ForceTrainWagonPopulation(carriage, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Entity | — | |
| BOOL | — |
Usage
lua
ForceTrainWagonPopulation(carriage, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
