☑️Config Breakdown

ClearDays

This option defines how many days a car will stay "parked" before it is removed or hidden

  • Default: 7

ParkedLimit

  • Limit how many cars a player can park, this is to help with the players who love to collect cars

  • Setting this to ParkedLimit = nil, removes this limit completely

  • Default: 10

OwnOnly

  • This simply allows players to park other peoples owned vehicles

  • true = can only park your own vehicles

PlaySendToGarage

  • If this is enabled the player can send their vehicle back to their garage from the parked list menu

SendToDepot

  • If true, when the ClearDays limit is reached, it will send the vehicle to the qb-garages depot

  • If false, it will send the car back to the last player garage used.

HideNotRemove

  • If true, this will override the SendToDepot setting

  • This changes how the system works so that a car is "hidden" instead of sent to the garage or depot

  • When hidden the player will need to go to the location of the car and view their parked car list and choose "Show Vehicle"

    • This brings the car back and also "reparks" the car, resetting the timer for it to be hidden again

LocationRestrictions

  • If you have enabled LocationRestrictions in the config, the players will ONLY be able to park in specific polyzones defined below this config option

Job Setup

  • In the config there is a table called JobRestrictions

  • This handles which job can do what to parked vehicles

  • This should be setup completely depending on what you want for your server

JobRestrictions = {
	["mechanic"] = { 			-- the Job role's name
		minGrade = 0, 			-- The minimum grade than that do anything to the parked car
		Clamp = true, 			-- Enable if this job role can
		SendToGarage = true,	-- Enable this to allow the job role to send the car back to the last garage used
		Impound = true,			-- Enable this to let the job role send the car to the "Police" impound
		Depot = true,			-- Enable this to allow them to send to the public depot
		Unlock = true,			-- Enable this to allow this job role to "unpark" the vehicle (suggested for vehicle search warrants)
	},
}

CarParks

  • These are the locations you can only park if LocationRestrictions is true

  • If a job table is added it will make it job locked

    • Not adding the job table to the zone will make it usable by anyone

CarParks = {
    ['pdfront'] = { 				-- Random name just to help you track what/where it is
		job = { ["police"] = 0, }, 	-- You can job restrict parking lots
		zone = { 					-- This is your poly zone, created with /pzcreate
			vector2(405.13595581054, -998.57788085938),
			vector2(410.59521484375, -1002.8664550782),
			vector2(410.91711425782, -979.44134521484),
			vector2(405.4065246582, -974.57928466796),
		},
		bottom = 28.0, 				-- The bottom of the zone
		top = 31.0, 				-- The highest point of the zone
    },
}

Standalone Mode

  • Enabling standalone mode makes this script essentially its own garage system instead of a garage script addon

  • This works fairly similarly to qb-garages with slight changes

  • "Garages" are no longer a thing with standalone mode, you need to "park" your vehicle outside otherwise it will be sent to the depot

  • Impound locations are controlled in the config (a few presets have been added)

  • Who can access "Police Impound" is set by the same variables as who can "send to impound" Config.JobRestictions

  • This brings the ability to impound boats and planes as you can transfer them to the depot from the impound

  • If using this mode, I recommend removing the qb-policejob /depot and /impound commands as this uses a different built-in system

Last updated