047D

From GTAMods Wiki
Revision as of 22:24, 4 February 2015 by Seemann (talk | contribs)
Jump to navigation Jump to search

GTA III GET_NUMBER_OF_SEATS_IN_MODEL


Description

Gets number of seats in vehicle with specified model

Syntax

047D: get_number_of_seats_in_model [int] store_to [var]

Parameter

[int]
Valid vehicle model ID number as defined in the IDE file; also acceptable is model's DFF name identified by a hash character
[var]
Variable to store number of seats

This opcode stores the number of seats in a model. The model must be a valid vehicle model, otherwise the opcode returns an unexpectable result. Some returned values are hardcoded as described below:

Model Id Model Name Number of seats
97 FIRETRUK 2
124 TRAIN 3
127 COACH 8
131 RCBANDIT 0

Keywords

model, seats, store, get