Difference between revisions of "057A"

From GTAMods Wiki
Jump to navigation Jump to search
(created page)
 
(updating page)
Line 1: Line 1:
{{OpCode
+
{{Icon|VC}}
| ini        = 057A=2,{{hint|%1d%|parameter 1: garage}} {{hint|%2h%|parameter 2: integer}}
+
<hr />
| description = Sets the maximum number of vehicles for the [[garage]]
+
'''Description'''
| p1          = Garage ID
+
: Sets the maximum number of vehicles for a save [[garage]] to open
| p2          = Integer (0-4)
+
'''Syntax'''
| game        = [[Vice City]]
+
: 057A: set_garage [''garage handle''] max_cars_to [''int'']
}}
+
'''Parameter'''
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.
+
: [''garage handle'']
 +
:: The [[Garage#Vice City 2|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 size is 4, since all save garages only allow a maximum of four vehicles. Setting the value below 4 will prevent the garage door from opening for additional vehicles and will display [[GXT]] string GA_21, but the garage door can be forced open and can still save up to four vehicles without any problem. Any values outside the range will revert to the default value of 4.
  
 
== Keywords ==
 
== Keywords ==
 
set, garage, max, cars, vehicles
 
set, garage, max, cars, vehicles

Revision as of 20:30, 24 August 2011

Vice City


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 size is 4, since all save garages only allow a maximum of four vehicles. Setting the value below 4 will prevent the garage door from opening for additional vehicles and will display GXT string GA_21, but the garage door can be forced open and can still save up to four vehicles without any problem. Any values outside the range will revert to the default value of 4.

Keywords

set, garage, max, cars, vehicles