Impound System
CS-Garages includes a vehicle impound system. This guide covers impound configuration and setup.
Configuration
Configure impound locations in config.lua
:
Config.Impounds = {
{
["impoundArea"] = "Area Name",
["impoundType"] = "car", -- Vehicle type
["impoundLocation"] = vector3(x, y, z),
["impoundPolygon"] = { -- Zone definition
vector3(x1, y1, z1),
vector3(x2, y2, z2)
-- Add more points to define zone
},
["impoundSpawns"] = { -- Release points
vector4(x, y, z, heading)
}
}
}
Price Configuration
Configure impound costs and payment methods:
Config.Utils = {
["priceConfig"] = {
["impoundCost"] = 1500, -- Impound retrieval fee
["impoundPaymentType"] = "money" -- "money" or "bank"
}
}
Zone System
The impound uses a polygon-based zone system:
impoundPolygon
: Defines the active area of the impoundWhen inside polygon: Markers are drawn for impound interaction
Zones are defined using vector3 points to create a boundary area
Troubleshooting
If impound system is not working:
Verify polygon points are properly defined
Check for overlapping zones
Ensure coordinates are at ground level
Verify payment configuration
For support, please include:
Server console output
Configuration settings
List of installed dependencies
Steps to reproduce the issue