Public Garages

CS-Garages provides a system for configuring public garages across your server. This guide covers public garage configuration.

Configuration

Configure public garage locations in config.lua:

Config.Garages = {
    {
        ["noBlip"] = true, -- Disable Blip (Commenting this out enables it)
        ["garageArea"] = "Area Name",
        ["garageType"] = "car",              -- Vehicle type
        ["garageLocation"] = vector3(x, y, z),
        ["removeLocation"] = vector3(x, y, z),
        ["garagePolygon"] = {               -- Zone definition
            vector3(x1, y1, z1),
            vector3(x2, y2, z2)
            -- Add more points to define zone
        },
        ["garageSpawns"] = {                -- Vehicle spawn points
            vector4(x, y, z, heading)
        }
    }
}

Vehicle Types

Available vehicle types:

  • car: Standard vehicles

  • boat: Water vehicles

  • helicopter: Rotary aircraft

  • plane: Fixed-wing aircraft

Zone System

The script uses a polygon-based zone system:

  • garagePolygon: Defines the active area of the garage

  • When inside polygon: Markers are drawn for garage interaction

  • Zones are defined using vector3 points to create a boundary area

Troubleshooting

If garage zones are not working:

  1. Verify polygon points are properly defined

  2. Check for overlapping zones

  3. Ensure coordinates are at ground level

For support, please include:

  • Server console output

  • Configuration settings

  • List of installed dependencies

  • Steps to reproduce the issue

Last updated