Skip to content
KS-Garage

KS-Garage

Installation

  1. Unzip the delivered archive into your resources/ folder, under the name ks-garage.
  2. Import the provided install.sql file into your database.
  3. Add ensure ks-garage to your server.cfg, after oxmysql and qb-core.
  4. Restart your server.

Configuration

Config.Garages = {
  {
    label = "Garage privé de Legion Square",
    type = "private", -- "private" | "public" | "company"
    coords = vec4(-778.9, -170.5, 37.6, 205.0),
    spawnPoints = { vec4(-770.1, -173.2, 37.6, 205.0) },
  },
}

A company garage automatically filters displayed vehicles by the connected player’s company — no extra configuration is needed on the KS-Corporate side.

Sharing a vehicle

Access to a vehicle is granted to another player via:

exports['ks-garage']:ShareVehicle(plate, targetCitizenId, { permanent = false, expiresIn = 3600 })
-- accorde l'accès au véhicule pendant 1h ; permanent = true pour un accès illimité

The targeted player can then pull the vehicle out from any compatible garage, without it leaving its original garage listing.

Common issues

The shared vehicle doesn’t show up in the targeted player’s garage. Sharing grants an access right, not visible co-ownership in every garage — the vehicle stays listed in its original garage, but becomes pullable by the targeted player from any compatible garage.

Transfer between garages doesn’t work. Check that Config.TransferCost is defined and that the player has enough funds — a 0-cost transfer must be explicitly configured, otherwise it’s blocked by default.

Something not covered here? Join our Discord.