_GET_ALL_TRAIN_WAGON_PASSENGERS
Collects all passenger peds (excluding the driver) from the specified wagon-type vehicle and adds them as indexed items to the provided itemset. Notes: - Always clear the itemset before calling. - Returns 0 if the wagon is empty or auto-population is disabled (ENTITY::_0x119A5714578F4E05(wagon, false)). - Itemset may contain dead peds; filter with IS_ENTITY_DEAD if needed. - Often used alongside wagon auto-population management.
VEHICLEBuild 1207
Signature
lua
GetAllTrainWagonPassengers(GetVehiclePedIsIn(PlayerPedId(), false), itemset)
-- returns intParameters
| Name | Type | Description |
|---|---|---|
| Vehicle | — | |
| ItemSet | — |
Usage
lua
GetAllTrainWagonPassengers(GetVehiclePedIsIn(PlayerPedId(), false), itemset)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
