CS_GARAGE
A garage system supporting cars, boats, aircraft, faction vehicles, and impound lots.
Installation
Configuration
Config.lua
This file sets up the garages in your server, defining positions, types, and behavior.
General Settings
Locale: Sets the language. Current setting:
"EN"(English).distance: Max distance to interact with a garage. Example:
10.0npcDistance: Distance for NPC spawning. Example:
20.0impoundPrice: Price for retrieving impounded vehicles. Example:
500ParkVehiclesOnStart:
true/falseβ Spawn vehicles on server start.SaveFuel:
true/falseβ Save vehicle fuel.FuelSystem:
"LegacyFuel","ox_fuel","custom"β Fuel system to use.SaveEngineHealth:
true/falseβ Save vehicle engine health.
Garage Definitions
Settings for individual garages:
position: Coordinates of the garage.
Example: vector3(215.76, -810.12, 30.73)
heading: Vehicle spawn heading. Example:
90.0NPC: Whether to spawn an NPC. Example:
truenpcModel: NPC model. Example:
"s_m_m_autoshop_01"npcPosition: NPC position & orientation. Example:
vector4(215.76, -810.12, 30.73, 180.0)blipType: Icon type on the map. Example:
"car"vehtype: Vehicle type allowed. Example:
"car"impound: If garage is an impound lot. Example:
truejob: Optional β restrict access to certain jobs. Example:
{"police", "ambulance"}spawnPoints: List of vehicle spawn positions.
Park-In Points
Defines where vehicles can be parked:
position: vector3 coordinates
marker: Custom marker settings (type, scale, color, etc.)
Blips
Custom blips for each garage or impound lot:
label: Example:
"Garage"sprite: Icon ID. Example:
50color: Example:
3scale: Example:
0.7
Notifications & Webhooks
HelpNotification(msg) β Shows help notification messages.
CustomClientSideNotification(title, msg, type) β Client notifications
Make sure to change the Notification function to your notify trigger!
Or else the script will not work properly.
Webhook Settings
Configure your webhook URLs for different events:
ParkedOutLink: Discord webhook URL triggered when a vehicle is parked out.ParkedInLink: Discord webhook URL triggered when a vehicle is parked in.UnimpoundedLink: Discord webhook URL triggered when a vehicle is unimpounded.
Tip: Leave the URL as an empty string "" if you do not want the webhook to trigger for that event.
Support
If you have any further questions, open a ticket on our discord server: discord.gg/core-services
Last updated