πJob Garage
How To Setup and Config.lua to Job Garage
How To Setup
Download OX-LIB and place it in your resources.
ensure ox-lib in your server.cfg
Download Spawn NPC Copy files from your keymaster and place it in your resources.
ensure sf_jobgarage in your server.cfg
Restart Your Server
Config.lua to Job Garage:
Config = {}
Config.debug = false -- [true/false]
Config.framework = "ESX" -- "ESX" or "QBCORE"
Config.newesx = true -- If you're using the newest esx version
Config.target = false -- [true/false]
Config.parkingmenuicon = 'parking' -- Menu Icon
Config.keys = false -- false or "tigerkeys" or "qb-vehiclekeys"
Config.blipscale = 0.7 -- If using map blips
Config.garages = {
{
garageId = 1, -- ID
garagename = "MRPD Garage", -- The label in the menu
jobname = "police", -- The job that can use the garage
mapblip = {
blip = true,
blipicon = 357,
blipcolor = 38,
blipname = "Garage"
},
vehicleblip = {
blip = false,
blipicon = 56,
blipcolor = 38,
blipname = "Police Car"
}, -- [Coming Soon]
coords = vector4(443.0985, -1012.8371, 28.5929, 36.6511), -- Only Vector 4 coords
markersicon = 21, -- The marker of the garage place. Find markers here: https://docs.fivem.net/docs/game-references/markers/
markerscolor = { r = 0, g = 0, b = 255 }, -- Blue color | RGB Color
parkingslots = {
{ name = "Parking slot #1", coords = vector4(446.2558, -1024.7690, 28.6395, 183.3437) }, -- Only Vector 4 coords | Name of the parking slot
-- Add more slots here if needed
},
cardeleter = vector4(452.2784, -1020.7908, 27.3564, 180.3162), -- Only Vector 4 coords
cardeletermarker = 1, -- The marker of the delete car place. Find markers here: https://docs.fivem.net/docs/game-references/markers/
cardeletercolor = { r = 255, g = 0, b = 0 }, -- Red color | RGB Color
cars = "police" -- What job cars you're using in the garage
},
{
garageId = 2,
garagename = "Pillbox Garage",
jobname = "ambulance",
mapblip = {
blip = true,
blipicon = 357,
blipcolor = 46,
blipname = "Garage"
},
vehicleblip = {
blip = false,
blipicon = 56,
blipcolor = 46,
blipname = "Ambulance"
}, -- [Coming Soon]
coords = vector4(440.8417, -1012.8301, 28.6020, 347.5439),
markersicon = 21,
markerscolor = { r = 255, g = 255, b = 0 }, -- Yellow color
parkingslots = {
{ name = "Parking slot #1", coords = vector4(429.2847, -1021.4725, 28.8607, 90.2668) },
-- Add more slots here if needed
},
cardeleter = vector4(453.5052, -1035.8857, 13.3573, 184.3895),
cardeletermarker = 1,
cardeletercolor = { r = 255, g = 0, b = 0 }, -- Red color
cars = "ambulance"
},
{
garageId = 3,
garagename = "Burger Shot",
jobname = "burgershot",
mapblip = {
blip = true,
blipicon = 357,
blipcolor = 10,
blipname = "Garage"
},
vehicleblip = {
blip = true,
blipicon = 56,
blipcolor = 10,
blipname = "Delivery Car"
}, -- [Coming Soon]
coords = vector4(-1188.0319, -902.4103, 13.8345, 262.1378),
markersicon = 21,
markerscolor = { r = 255, g = 255, b = 0 }, -- Yellow color
parkingslots = {
{ name = "Parking slot #1", coords = vector4(-1177.0291, -900.4653, 13.6534, 304.7684) },
-- Add more slots here if needed
},
cardeleter = vector4(-1177.0291, -900.4653, 13.6534, 304.7684),
cardeletermarker = 1,
cardeletercolor = { r = 255, g = 0, b = 0 }, -- Red color
cars = "burgershot"
}
-- Add more garages here if needed
}
Config.categorymenu = {
{
categorymneuid = 1,
categorymenulabel = "Marked",
categorymenuicon = 'car',
cars = "police"
},
{
categorymneuid = 2,
categorymenulabel = "Unmarked",
categorymenuicon = 'car',
cars = "police"
},
{
categorymneuid = 3,
categorymenulabel = "Car",
categorymenuicon = 'car',
cars = "burgershot"
}
-- Add more categories here if needed
}
Config.jobcars = {
{
carlabel = 'Police Car #1', -- The label in the menu
carspawnname = "police", -- The spawn name of the car
menuicon = 'car', -- Menu Icon [Only if you want a icon] ['car', 'ambulance', 'helicopter']. You can find more here: https://fontawesome.com/icons
rank = 1, -- Rank
image = 'https://img.gta5-mods.com/q95/images/vapid-stanier-police-cruiser/e0b901-20180204124545_1.jpg', -- The URL to the image/photo [png or jpg or jpeg]
liverys = {
[1] = "Number 76",
[2] = "Number 05",
[3] = "Number 84",
[4] = "Number 29",
[5] = "Number 43",
[6] = "Number 32"
-- Add as many as you want
},
colors = false, -- If the car doesn't have different colors
extras = {
[1] = "Lightbar 1",
[2] = "Lightbar 2"
-- Add as many as you want
},
customplatetext = "test", -- Max 8 Characters
cars = "police", -- What garage you're using
categorymenu = 1 -- What category you're using
},
{
carlabel = 'Police Car #2',
carspawnname = "police2",
rank = 3,
image = 'https://img.gta5-mods.com/q95/images/police-buffalo-s-templated/bb004d-1.jpeg',
liverys = false, -- If the car doesn't have liveries
colors = false,
extras = false, -- If the car doesn't have extras
customplatetext = "juice",
cars = "police",
categorymenu = 2
},
{
carlabel = 'Police Car #3',
carspawnname = "police3",
rank = 1,
liverys = false,
colors = false,
extras = false,
customplatetext = false, -- Then it will spawn with a random plate
cars = "police",
categorymenu = false
},
{
carlabel = 'Police Car #4',
carspawnname = "police4",
rank = false,
liverys = false,
colors = false,
extras = false,
customplatetext = "denmark",
cars = "police",
categorymenu = 1
},
{
carlabel = 'Ambulance #1',
carspawnname = "ambulance",
menuicon = 'ambulance',
rank = false,
image = 'https://example.com/ambulance_1.jpg',
liverys = { -- How many liveries the car has
[1] = "Los Santos Fire Department",
[2] = "Los Santos Medical Center",
[3] = "Mission Row San Andreas"
-- Add as many as you want
},
colors = false,
extras = false,
customplatetext = false,
cars = "ambulance",
categorymenu = false
},
{
carlabel = 'Wagon',
carspawnname = "nspeedo",
menuicon = 'car',
rank = false,
image = 'https://example.com/ambulance_1.jpg',
liverys = { -- How many liveries the car has
[1] = "Red",
[2] = "White",
[3] = "Nothing"
-- Add as many as you want
},
colors = {
["#FF0000"] = "Red",
["#0000FF"] = "Blue"
},
extras = false,
customplatetext = false,
cars = "burgershot",
categorymenu = 3
}
-- Add as many as you want
}
-- Upgrade Stations --
Config.targetsize = vector3(5.0, 5.0, 5.0) -- [Only With OX-target] The size of the target
Config.object = "prop_mb_crate_01a" -- [Only With OX-target] The prop name of the object. Find more here: https://gtahash.ru/ or here: https://gta-objects.xyz/
Config.upgradestationmarker = 36 -- [Only Without OX-target] The marker of the upgrade station. Find markers here: https://docs.fivem.net/docs/game-references/markers/
Config.upgradestationcolor = { r = 255, g = 255, b = 0 } -- [Only Without OX-target] Yellow color
Config.upgradestationmarkertext = 'Press E To Open Upgrade Station' -- [Only Without OX-target]
Config.upgradestations = {
{
StationID = 1,
Job = "police",
Coords = vector4(423.4212, -1016.1696, 29.0466, 196.8664),
menus = {
fullupgrade = true,
livery = true,
windowdarkness = true,
extras = true,
colors = false,
plates = true
}
},
{
StationID = 2,
Job = "ambulance",
Coords = vector4(450.1590, -1026.1747, 28.5764, 262.7987),
menus = {
fullupgrade = true,
livery = true,
windowdarkness = true,
extras = false,
colors = false,
plates = true
}
},
{
StationID = 3,
Job = "burgershot",
Coords = vector4(-1167.4382, -891.9904, 14.0233, 316.0854),
menus = {
fullupgrade = false,
livery = true,
windowdarkness = false,
extras = false,
colors = true,
plates = true
}
}
}
Last updated