[HV] Police garage
- very customizable
- job locked police garage script
- easy to configure
- 200+ lines of code
- uses ox_lib for a nice design
- frequent updates will be provided
Config
Config = {}
--edit the point where you can open the menu
Config.InteractionPoint = {
coords = vector3(859.2120, -1342.0430, 26.0292)
}
--edit the spawnpoints for the cars
Config.SpawnPoints = {
{ coords = vector3(872.1389, -1350.0563, 26.3067), heading = 107.9122 },
{ coords = vector3(843.5854, -1352.0558, 26.0793), heading = 255.0464 },
{ coords = vector3(843.5780, -1346.4698, 26.0653), heading = 246.9148 },
{ coords = vector3(842.6371, -1339.5089, 26.0502), heading = 238.5610 }
}
--edit the point where you can remove your car
Config.RemovePoint = {
coords = vector3(858.7559, -1334.3054, 26.1136)
}
--edit the spawn marker https://docs.fivem.net/docs/game-references/markers/
Config.Marker = {
enable = true, -- Enable/Disable markers
type = 1, -- Marker type
scale = { x = 1.5, y = 1.5, z = 1.0 }, -- Marker scale
color = { r = 0, g = 255, b = 0, a = 100 } -- Marker color
}
--edit the remove marker https://docs.fivem.net/docs/game-references/markers/
Config.RemoveMarker = {
enable = true, -- Enable/Disable remove point marker
type = 1, -- Marker type
scale = { x = 1.5, y = 1.5, z = 1.0 }, -- Marker scale
color = { r = 255, g = 0, b = 0, a = 100 } -- Marker color
}
--edit the blip https://docs.fivem.net/docs/game-references/blips/
Config.Blips = {
enable = true, -- Enable or disable blips
interactionBlip = {
coords = vector3(859.2120, -1342.0430, 26.0292),
sprite = 357,
scale = 0.8,
color = 3,
label = "Police Garage"
},
--edit the remove blip https://docs.fivem.net/docs/game-references/blips/
removeBlip = {
coords = vector3(858.7559, -1334.3054, 26.1136),
sprite = 357,
scale = 0.8,
color = 1,
label = "Vehicle Return"
}
}
--config the police cars
Config.PoliceVehicles = {
{ label = "Police Cruiser", model = "police", minGrade = 0, maxGrade = 9 },
}
--edit the notifications
Config.Notifications = {
vehicleReturnedTitle = "Vehicle Returned",
vehicleReturnedMessage = "Your vehicle has been successfully returned!",
allOccupiedTitle = "All Spawn Points Occupied",
allOccupiedMessage = "All spawn points are occupied!",
position = "top" -- Configurable position for notifications
}
--config the menu title
Config.Menu = {
title = "Police Garage" -- Customize the menu title
}
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | 200+ |
Requirements | ox_lib, es_extended |
Support | Yes |