Kartik Scripts

Garage & Vehicles

Garage

Two systems in one place: department vehicles anyone can take, and owned vehicles a medic buys for themselves.

Needs the Garage permission (rank 0 by default).


🚑 Department vehicles

Free to take, shared by everyone.

VehicleCategoryRank
AmbulanceCar0
Lifeguard SUVCar1
Air Ambulance (polmav)Air2
Rescue DinghyBoat1

Spawned with a plate prefixed EMS and a random number, full fuel, and keys handed to you through whichever key script you run.


💰 Owned vehicles

A medic can buy up to 3 of their own.

VehiclePriceRank
Ambulance$25,0000
Lifeguard SUV$35,0001
Supervisor SUV (fbi2)$60,0003
Air Ambulance$250,0002
Rescue Dinghy$40,0001

Upgrades

UpgradeLevelsTop price
Engine4$14,000
Brakes3$6,000
Transmission3$7,500
Suspension4$5,000
Armor5$16,000
Turboon / off$12,000

Recovery

Lost or destroyed a vehicle? Recover it for $750. The fee goes to the EMS society.

Selling

Get 50% of the purchase price back.

Owned vehicles can be turned off entirely with Config.Garages.owned.enabled = false if you want department vehicles only.


📸 Vehicle images

The garage screen shows a photo of each vehicle. To generate them for your own vehicle list:

/emsadmin → Tools → Vehicle photos → Take photos

It photographs every garage vehicle on a green screen. Needs screenshot-basic or screencapture.

Images land in images/vehicles. Restart the resource afterwards so players download them.

To redo a single vehicle, type its model (for example ambulance) before pressing Take photos.


🛠️ Adding your own vehicles

Vehicle lists are in shared/config/vehicles.lua. Add an entry with the model, label, price and rank.

For a vehicle that should carry a stretcher, add it to Config.Ambulances with its stretcher offset and rotation, and whether it has a patient monitor in the back:

Config.Ambulances = {
    ambulance = {
        stretcherOffset = { 0.0, -1.9, 0.35 },
        stretcherRot = { 0.0, 0.0, 90.0 },
        rearDistance = 4.0,
        monitor = true,
    },
}

⛽ Fuel and keys

Both are handled by your existing scripts. The garage detects:

  • Fuel: ox_fuel, LegacyFuel, cdn-fuel, ps-fuel, lj-fuel, Renewed-Fuel, okokGasStation, qs-fuelstations, rcore_fuel, lc_fuel, or GTA fuel.
  • Keys: p_vehiclekeys, qbx_vehiclekeys, qb-vehiclekeys, wasabi_carlock, qs-vehiclekeys, MrNewbVehicleKeys, Renewed-Vehiclekeys, t1ger_keys, jaksam-vehicles-keys, okokGarage.

On this page