Creating Garage
All garages are defined in a file using key-value pairs. The key represents the garage's label, which is used throughout the script and database, while the value is a table containing the garage's options.
Garage options: table
type:
string'car', 'air', 'boat'- whatever you want
enter:
vector3Coords of enter position
parkVehicle:
vector3Coords for parking vehicle in garage
vehicleSpawnPoint:
vector4Spawn point of vehicle
price:
numberPrice of garage
blip:
tableBlip table contains:
id
colour
scale
blackListClass:
tableClasses that are blacklisted for this garage, check list of all vehicles here, table must be array
GarageInfo:
stringSome general info about garage for players
interior:
stringInterior from config/interior.lua
You can check some predefined garages in config/garages.lua
Last updated