Garage
Description
Stores and retrieves supported cars, motorbikes and boats at parking points. The module supports configured server parking lots and player-deployed parking units.
Use the Open Garage action at a terminal or deployed parking unit.
Configuration
Default configuration
Garage.json
{
"m_Enable": 0,
"m_Logging": 1,
"m_MaxVehicle": 10,
"m_EmptyInventory": 1,
"m_EnableDismantle": 1,
"m_PersonalParkingOnMap": 1,
"m_ParkingLots": [
{
"m_Id": 1,
"m_Name": "Altar",
"m_Class": "AC_Garage_Parking_Static",
"m_Position": {
"m_X": 8156.40380859375,
"m_Y": 475.47149658203127,
"m_Z": 9142.21484375
},
"m_Orientation": {
"m_Yaw": -118.34229278564453,
"m_Pitch": 0.0,
"m_Roll": -0.0
},
"m_Holograms": [
{
"m_Name": "red",
"m_Class": "AC_Garage_HologramRed",
"m_Position": {
"m_X": 8152.21923828125,
"m_Y": 475.2490234375,
"m_Z": 9136.0341796875
},
"m_Orientation": {
"m_Yaw": 50.0,
"m_Pitch": 0.0,
"m_Roll": 0.0
}
}
]
},
{
"m_Id": 2,
"m_Name": "Green Mountain",
"m_Class": "AC_Garage_Parking_Static",
"m_Position": {
"m_X": 3714.158935546875,
"m_Y": 402.0,
"m_Z": 5993.3408203125
},
"m_Orientation": {
"m_Yaw": -8.999919891357422,
"m_Pitch": 0.0,
"m_Roll": 0.0
},
"m_Holograms": [
{
"m_Name": "red",
"m_Class": "AC_Garage_HologramRed",
"m_Position": {
"m_X": 3713.607666015625,
"m_Y": 402.0132751464844,
"m_Z": 5999.52978515625
},
"m_Orientation": {
"m_Yaw": 50.0,
"m_Pitch": 0.0,
"m_Roll": 0.0
}
}
]
}
],
"m_IgnoreVehicles": []
}Options
| Option | Type | Description |
|---|---|---|
m_Enable | bool | Enables the module with 1 and disables it with 0. |
m_Logging | bool | With 1, records garage operations in the module log. With 0, keeps this behavior disabled. |
m_MaxVehicle | int | Base storage limit for the garage record. An existing per-record bonus adds to this limit. |
m_EmptyInventory | bool | With 1, requires the vehicle cargo to be empty before storing it. With 0, keeps this behavior disabled. |
m_EnableDismantle | bool | With 1, allows dismantling deployable parking units where the unit's own checks allow it. With 0, keeps this behavior disabled. |
m_PersonalParkingOnMap | bool | With 1, publishes markers for the player's personal parking locations on the Map module. With 0, keeps this behavior disabled. |
m_ParkingLots | array<object> | Static parking terminals and their vehicle positions. |
m_IgnoreVehicles | array<string> | Exact vehicle class names excluded from nearby parking candidates. |
m_ParkingLots[]
| Option | Type | Description |
|---|---|---|
m_Id | int | Parking location ID. Entries with the same ID share the retrieval group. |
m_Name | string | Label shown in the garage menu. |
m_Class | string | Class of the terminal placed by the server. |
m_Position | object | World position of the terminal. |
m_Orientation | object | Rotation of the terminal. |
m_Holograms | array<object> | Vehicle parking positions associated with the terminal. |
m_ParkingLots[].m_Holograms[]
| Option | Type | Description |
|---|---|---|
m_Name | string | Label stored for the parking position. |
m_Class | string | Class of the object placed at the position. |
m_Position | object | World position of the hologram. |
m_Orientation | object | Rotation of the hologram. |
m_ParkingLots[].m_Position, m_ParkingLots[].m_Holograms[].m_Position
| Option | Type | Description |
|---|---|---|
m_X | float | World X coordinate in meters. |
m_Y | float | Height in meters. |
m_Z | float | World Z coordinate in meters. |
m_ParkingLots[].m_Orientation, m_ParkingLots[].m_Holograms[].m_Orientation
| Option | Type | Description |
|---|---|---|
m_Yaw | float | Yaw in degrees. |
m_Pitch | float | Pitch in degrees. |
m_Roll | float | Roll in degrees. |
Use AC_Garage_Parking_Kit for a unit that accesses each player's own record or AC_Garage_ParkingGlobal_Kit for a unit with a shared record tied to that unit. A shared unit with stored vehicles cannot be dismantled through the standard dismantling workflow. In server-defined parking lots, use the terminal class in m_Class and assign a hologram class in m_Holograms[].m_Class.
Configuration classes
| Class | Purpose |
|---|---|
AC_Garage_Parking_Static | Static terminal for the server's parking lot. |
AC_Garage_Hologram | Vehicle position hologram. |
AC_Garage_HologramBlue | Blue vehicle position hologram. |
AC_Garage_HologramGreen | Green vehicle position hologram. |
AC_Garage_HologramRed | Red vehicle position hologram. |
Types
types.xml
<type name="AC_Garage_Parking">
<lifetime>3888000</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Garage_ParkingGlobal">
<lifetime>3888000</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Garage_Parking_Kit">
<lifetime>7200</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_Garage_ParkingGlobal_Kit">
<lifetime>7200</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>Permissions
The garage menu is available by default. Configure garage.deny or garage.allow in Permissions to control opening the menu. garage.allow takes priority when both permissions apply.
