Difference between revisions of "057A"

From GTAMods Wiki
Jump to navigation Jump to search
(created page)
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 057A=2,{{hint|%1d%|parameter 1: garage}} {{hint|%2h%|parameter 2: integer}}
+
| games      = {{Icon|VC}}
| description = Sets the maximum number of vehicles for the [[garage]]
+
| command    = SET_MAXIMUM_NUMBER_OF_CARS_IN_GARAGE
| p1          = Garage ID
+
| description = Sets the maximum number of vehicles for a save [[garage]] to open
| p2          = Integer (0-4)
+
| syntax1    = 057A: set_garage [''garage handle''] max_cars_to [''int'']
| game        = [[Vice City]]
+
| p1t        = [''garage handle'']
 +
| p1d        = The [[Garage#Vice City 2|handle of the garage]]
 +
| p2t        = [''int'']
 +
| p2d        = Range from 0 to 4
 
}}
 
}}
This opcode sets the maximum number of vehicles allowed for a "save garage." Without this opcode, the default size is 4. All save garages allow a maximum of four vehicles only so setting this opcode above 4 doesn't work. Setting this opcode below 4 will prevent the garage door from opening for additional vehicles but the garage door can be forced open and can still save up to four vehicles without problems.
+
 
 +
This opcode sets the maximum number of vehicles for a save garage to open. Without this opcode, the default number is 4, since all save garages can only save a maximum of four vehicles. Setting the value below 4 will prevent the garage door from opening for additional vehicles and will display a [[Text#Help message|help message]] with [[GXT]] key <code>GA_21</code> when attempting, but the garage door can be forced open and can still save up to four vehicles without any problem. Any values above the range will behave like the default value of 4.
  
 
== Keywords ==
 
== Keywords ==
set, garage, max, cars, vehicles
+
set, garage, max, car, cars, vehicle, vehicles

Latest revision as of 16:37, 14 February 2016

Vice City SET_MAXIMUM_NUMBER_OF_CARS_IN_GARAGE


Description
Sets the maximum number of vehicles for a save garage to open
Syntax
057A: set_garage [garage handle] max_cars_to [int]
Parameter
[garage handle]
The handle of the garage
[int]
Range from 0 to 4

This opcode sets the maximum number of vehicles for a save garage to open. Without this opcode, the default number is 4, since all save garages can only save a maximum of four vehicles. Setting the value below 4 will prevent the garage door from opening for additional vehicles and will display a help message with GXT key GA_21 when attempting, but the garage door can be forced open and can still save up to four vehicles without any problem. Any values above the range will behave like the default value of 4.

Keywords

set, garage, max, car, cars, vehicle, vehicles