RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _GET_ALL_TRAIN_WAGON_PASSENGERS

_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 int

Parameters

NameTypeDescription
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

On this page

  • Signature
  • Parameters
  • Usage
  • Details