AI Core

ai-garages

Public garages, job and gang fleet garages, and impound lots with a fee.

ai-garages is where players park their vehicles and take them out again. It keeps no vehicles of its own: every vehicle lives in ai-vehicles, ai-garages only shows the list and moves vehicles in and out.

What it does in the game

  • Parking. Drive into a garage's area and press the interact key at the Park in ... prompt. Everyone else has to get out first. The vehicle is saved with its look, fuel and damage. Vehicles are stored per garage: a car parked at Motel Parking waits there, not at every garage.
  • Taking out. On foot inside the area, press the interact key at Open .... A list shows your vehicles with fuel, engine and body condition and the plate. Take out brings the vehicle to the garage's exit point, and you get the keys.
  • Job and gang garages. A garage with jobs or gangs set shows only to their members and lists that job's or gang's fleet. Fleet vehicles without a garage show in every garage of their job or gang. A gang garage also keeps its members' own cars parked there.
  • Impound lots. A vehicle left out when the server restarts, or deleted in the world, waits at the impound. An impound lot lists those vehicles; taking one out costs the impound fee (Pay $...). If the vehicle cannot be brought out, the fee is paid back.
  • Garage types. Car, boat and aircraft garages each list only their own kind.

Installation

Installed by the AI Core recipe. By hand: ensure ai-garages after ai-core and ai-vehicles. 37 garages come ready in data/garages.json: 16 public car parks, the Depot Lot impound, a police garage, the Ballas, Families, Lost MC and Cartel gang garages, five aircraft hangars, three boathouses, the air, sea and big rig depots, and five big rig parkings.

Panel settings

Admin panel > Garages.

Tab: Garages

Where players park and take out their vehicles; job and gang garages hold their fleet, impound lots hold towed vehicles. One record per garage (New garage / Delete garage). Deleting a garage keeps the vehicles parked there stored; admins can move them.

Garage card: the area where players park, and where vehicles come out.

SettingWhat it changesUnitDefault for new
NameShown on the prompt and the list. 1-48 characters.
VehiclesCars, Boats or Aircraft: which vehicles park here, and which blip it uses.Cars
Area centreStand in the middle of the parking area and use your position.point
AreaHow far from the centre players can park or open the garage. 2-50.m12
Exit pointWhere taken out vehicles appear, facing your direction.point + heading
JobsOnly members of these jobs can use it. Leave jobs and gangs empty for everyone.empty
GangsMembers of these gangs can use it too.empty
Only on dutyJob members must be on duty in that job.on / offoff
Impound lotLists towed and lost vehicles for a fee instead of parked ones.on / offoff
Map blipShows this garage on the map, with the look of its kind from the Settings tab.on / offon

NPC card: a person standing at this place. Leave the model empty for none.

SettingWhat it changes
ModelThe ped model; empty means no NPC. Players see it within 50 m.
What it doesAn idle animation the NPC plays on the spot (stands still, waits impatiently, holds a clipboard, looks at a phone, drinks coffee, smokes, stands guard, police idle, hangs out).
Where it standsThe NPC's floor spot and the way it faces; without one it stands on the place's point.

Tab: Settings

What getting a vehicle back from the impound costs, and how garages look on the map.

SettingWhat it changesUnitDefault
FeePaid when taking a vehicle out of the impound. 0-1,000,000.$500
Paid fromMoney accounts tried in order.cash, bank
Cars / Boats / Aircraft / Impound lot (Map blips)The blip of each garage kind (icon, color, size); a garage shows it when its Map blip switch is on.Cars 357, Boats 356, Aircraft 360, Impound 68; color 3, size 0.6

Commands and keybinds

None. The prompts use the interact key (E by default).

Other garage scripts

AI Core's garage layer also works with tgiann-realparking, tgiann-garage, jg-advancedgarages and cd_garage. Pick one in the admin panel: Server > General > Garage script (Automatic takes the first one running) and stop ai-garages. Police impounds and other ai-* scripts go through the layer, so they keep working (each script answers only what it can do).

Known limits

  • The garage list opens only inside the garage's area: other scripts cannot open it from afar.
  • Parking refuses a vehicle with other players inside, and a vehicle that is not owned (ai-vehicles).
  • Parking keeps the stored tuning: only a tuning shop (ai-mechanic) changes mods.

On this page