Configuration

This page details the configuration options available in shared/config.lua and shared/server_config.lua.

Shared Configuration (shared/config.lua)

General Options

  • Config.debug: Set to true to enable debug markers and logs.

  • Config.useRadialMenu: If true, garage interactions are added to the ox_lib radial menu. If false, standard "Press E" prompts are used.

  • Config.TransferRatePerMile: The cost per mile for transferring a vehicle between garages.

  • Config.ImpoundPrice: The default fine for retrieving an impounded vehicle.

  • Config.WrapInsideVehicleOnSpawn: If true, the player is automatically placed inside the vehicle when spawned from a garage.

Impound Settings

  • Config.RestartImpoundMode: Controls what happens to vehicles left outside during a server restart.

    • "impound": Sends them to an impound lot (default).

    • "return": Sets their state to 1 (stored in their original garage).

    • "none": Does nothing.

  • Config.NonImpoundVehicle: A list of vehicle models that are exempt from the restart impound logic.

Jobs & Permissions

  • Config.PoliceJobs: A list of job names that are considered "Police" and have access to the impound tools.

  • Config.CustomPlateItem: The item name used for changing vehicle plates (e.g., "plate").

Vehicle Types

Config.VehicleTypes defines the available categories of vehicles:

  • all: All types.

  • automobile: Cars and trucks.

  • bike: Motorcycles.

  • heli: Helicopters.

  • boat: Boats.

  • ...and more.

Impound Lots

Config.ImpoundLots allows you to define locations for impoundment:

  • label: Display name.

  • blip: Blip configuration (sprite, color, coords).

  • vehicleTypes: Which vehicle types this lot accepts.

  • zone: The physical area for the impound lot (PolyZone).

  • parkingSpots: A list of coordinates where vehicles will spawn when retrieved.


Server Configuration (shared/server_config.lua)

Logs (Discord Webhooks)

Configure webhooks to track garage activity:

  • server_impound: Logs automated restart impounds.

  • impound_by_panel: Logs vehicles impounded manually by police.

  • impound_retrieved: Logs when a player pays to retrieve a vehicle.

  • park_vehicle: Logs when a vehicle is successfully parked.

  • spawn_vehicle: Logs when a vehicle is spawned from a garage.

Last updated