SAFScriptsDocs

SAF Garage

Saved-vehicle garage for menu-spawn servers, with liveries, plates and share codes.

Status
Coming soon
Version
1.0.0
Resource
saf-garage
Frameworks
Qbox, QBCore, ESX, ND Core, ox_core, standalone
Dependencies
None
Database
Optional, oxmysql (falls back to a JSON file)
Open files
config.lua, bridge/, custom/
The SAF Garage menu with a table of saved vehicles and the picked car's picture, plate and livery on the side
On this page

SAF Garage is for servers where players spawn cars from a menu. Get in a car you built, save it, and take it out again later exactly as it was: every mod, colour, livery, extra and the plate.

What it keeps

PartWhat is saved
Model and plateModel, plate text and plate style
PaintPrimary, secondary, pearl and wheel colours, custom paint, interior and dash colours
Lights and glassWindow tint, neons, xenon colour, tyre smoke
ModsWheel type and every mod slot, with custom tyres, turbo and xenons
LiveriesPaint livery, mod livery and roof livery
ExtrasEvery extra, on or off
DirtOptional, off by default

The garage menu

Your vehicles sit in a sortable table with search and pins. The picked vehicle shows on the side with its picture, plate and livery.

  • Livery picker. Lists every livery the car has by name. Sitting in that car, each pick shows on it while you choose.
  • Plate editor. Up to 8 characters with a live preview, plate styles, a word filter and optional server-wide unique plates.
  • Save over. Changed something on a car you took out? Save the changes over the saved one.
  • Share codes. Turn a build into a short code like K7QD-M2XP. Anyone can import it into their own garage, with their own plate.
The plate editor
FIG 01The plate editor with a live preview and the plate styles

Spawning

Take cars out wherever you are, or only at garage spots on the map. Every action is checked on the server: who owns the vehicle, which models are allowed, a spawn cooldown and a rate limit. Spawns look for a clear spot so cars never land inside each other.

Next steps

SAF Scripts by San Andreas' Finest StoreDiscordsupprot@safrp.org

Not affiliated with or endorsed by Rockstar Games, Take-Two Interactive or Cfx.re.