Skip to content

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
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 ​

OptionTypeDescription
m_EnableboolEnables the module with 1 and disables it with 0.
m_LoggingboolWith 1, records garage operations in the module log. With 0, keeps this behavior disabled.
m_MaxVehicleintBase storage limit for the garage record. An existing per-record bonus adds to this limit.
m_EmptyInventoryboolWith 1, requires the vehicle cargo to be empty before storing it. With 0, keeps this behavior disabled.
m_EnableDismantleboolWith 1, allows dismantling deployable parking units where the unit's own checks allow it. With 0, keeps this behavior disabled.
m_PersonalParkingOnMapboolWith 1, publishes markers for the player's personal parking locations on the Map module. With 0, keeps this behavior disabled.
m_ParkingLotsarray<object>Static parking terminals and their vehicle positions.
m_IgnoreVehiclesarray<string>Exact vehicle class names excluded from nearby parking candidates.

m_ParkingLots[] ​

OptionTypeDescription
m_IdintParking location ID. Entries with the same ID share the retrieval group.
m_NamestringLabel shown in the garage menu.
m_ClassstringClass of the terminal placed by the server.
m_PositionobjectWorld position of the terminal.
m_OrientationobjectRotation of the terminal.
m_Hologramsarray<object>Vehicle parking positions associated with the terminal.

m_ParkingLots[].m_Holograms[] ​

OptionTypeDescription
m_NamestringLabel stored for the parking position.
m_ClassstringClass of the object placed at the position.
m_PositionobjectWorld position of the hologram.
m_OrientationobjectRotation of the hologram.

m_ParkingLots[].m_Position, m_ParkingLots[].m_Holograms[].m_Position ​

OptionTypeDescription
m_XfloatWorld X coordinate in meters.
m_YfloatHeight in meters.
m_ZfloatWorld Z coordinate in meters.

m_ParkingLots[].m_Orientation, m_ParkingLots[].m_Holograms[].m_Orientation ​

OptionTypeDescription
m_YawfloatYaw in degrees.
m_PitchfloatPitch in degrees.
m_RollfloatRoll 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 ​

ClassPurpose
AC_Garage_Parking_StaticStatic terminal for the server's parking lot.
AC_Garage_HologramVehicle position hologram.
AC_Garage_HologramBlueBlue vehicle position hologram.
AC_Garage_HologramGreenGreen vehicle position hologram.
AC_Garage_HologramRedRed vehicle position hologram.

Types ​

types.xml
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.

Released under the MIT License.