Config Files
Last updated
Last updated
By default our DOJ Job comes with presets.
Config = {}
Config.Debug = false -- debug mode? script will print more information in console and debug targets
Config.Language = 'en' -- en / de / pl / es / fr / it / ru / tr / ar
Config.Framework = 'ESX' -- ESX / QB / QBOX
Config.Target = 'ox_target' -- ox_target / qb-target
Config.Commands = true -- enable commands?
Config.RadialMenu = true -- true / false [if you want to use ox_lib radial menu set true, otherwise set false]
Config.Jobs = { -- JOBS THAT CAN ACCESS RADIAL MENU
['doj'] = 0
}
Config.Blips = { -- BLIPS ON MAP
-- FM CITY HALL
{
coords = vector3(-545.3547, -203.7277, 38.2151), -- blip coords
label = 'Department of Justice', -- label on map
sprite = 439, -- blip sprite https://docs.fivem.net/docs/game-references/blips/
color = 46, -- blip color https://docs.fivem.net/docs/game-references/blips/
scale = 0.85, -- blip scale
},
-- FM CITY HALL LS
-- {
-- coords = vector3(-545.4425, -621.2889, 35.6050), -- blip coords
-- label = 'Department of Justice', -- label on map
-- sprite = 439, -- blip sprite https://docs.fivem.net/docs/game-references/blips/
-- color = 46, -- blip color https://docs.fivem.net/docs/game-references/blips/
-- scale = 0.85, -- blip scale
-- },
}
Config.Lockers = {
['CityHall_1'] = { -- script will create locker with id CityHall_1_Locker
coords = vector3(97.04, -879.25, 35.2),
jobs = {['doj'] = 0}, -- jobs that can access this locker [jobName] = jobGrade
slots = 50, -- slots in locker
weight = 500000, -- weight in locker
private = true, -- if true, every player will have their own locker, if false, all players will share the same locker
},
-- FM CITY HALL LS
-- ['CityHall_LS_1'] = { -- script will create locker with id CityHall_1_Locker
-- coords = vector3(-530.5, -621.3, 35.8),
-- jobs = {['doj'] = 0}, -- jobs that can access this locker [jobName] = jobGrade
-- slots = 50, -- slots in locker
-- weight = 500000, -- weight in locker
-- private = true, -- if true, every player will have their own locker, if false, all players will share the same locker
-- },
}
Config.Wardrobes = {
['CityHall_1'] = {
coords = vector3(65.3, -911.02, 35.5),
jobs = {['doj'] = 0}, -- jobs that can access this wardrobe [jobName] = jobGrade
},
-- FM CITY HALL LS
-- ['CityHall_LS_1'] = {
-- coords = vector3(-571.32, -602.53, 36.0),
-- jobs = {['doj'] = 0}, -- jobs that can access this wardrobe [jobName] = jobGrade
-- },
}
Config.WardrobePermissions = { -- which jobs can create outfits
['doj'] = 0,
}
Config.DocumentLockers = { -- LOCKERS FOR DOCUMENTS [ACCESSING BY SOME ID]
['CityHall_1'] = { -- script will create locker with id CityHall_1_Document_Locker
coords = vector3(96.67, -880.5, 35.2),
jobs = {['doj'] = 0}, -- jobs that can access this locker [jobName] = jobGrade
slots = 50, weight = 500000
},
-- FM CITY HALL LS
-- ['CityHall_LS_1'] = { -- script will create locker with id CityHall_1_Document_Locker
-- coords = vector3(-531.84, -621.31, 35.8),
-- jobs = {['doj'] = 0}, -- jobs that can access this locker [jobName] = jobGrade
-- slots = 50, weight = 500000
-- },
}
Config.Garages = {
['CityHall_1'] = {
jobs = {['doj'] = 0}, -- jobs that can access this garage [jobName] = jobGrade
coords = vector4(88.3215, -840.8865, 33.3146, 343.0923),
spawnPoints = {
vector4(92.1848, -838.7094, 33.3146, 338.7983),
vector4(95.8240, -840.1579, 33.3146, 338.7702),
vector4(69.9207, -832.4156, 33.3146, 250.4202),
vector4(71.1744, -828.5731, 33.3146, 250.0113),
vector4(72.5086, -824.7050, 33.3146, 247.8170)
},
ped = {model = 's_m_y_airworker', anim = {}},
gradeRestricted = true, -- if grade restricted you need to set vehicles for grades, if not you need to set vehicles for all
-- VEHICLES FOR ALL GRADES
-- vehicles = {
-- ['washington'] = { -- spawn name
-- label = 'Washington',
-- mods = { -- https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua [check all mods here]
-- ['color1'] = 1, ['color2'] = 1,
-- ['livery'] = 1
-- },
-- },
-- },
vehicles = {
['0'] = {
['washington'] = { -- spawn name
label = 'Washington',
mods = { -- https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua [check all mods here]
['color1'] = 1, ['color2'] = 1,
['livery'] = 1
},
}
}
}
},
-- FM CITY HALL LS
-- ['CityHall_LS_1'] = {
-- jobs = {['doj'] = 0}, -- jobs that can access this garage [jobName] = jobGrade
-- coords = vector4(-497.4413, -599.7752, 33.9005, 271.0759),
-- spawnPoints = {
-- vector4(-494.1490, -602.5171, 33.9006, 268.5907),
-- vector4(-494.5722, -606.6237, 33.9006, 268.9452),
-- vector4(-496.1283, -579.1907, 34.0959, 181.4695),
-- vector4(-492.0006, -579.4944, 34.0913, 178.9854),
-- vector4(-487.7417, -579.4999, 34.0863, 176.2200)
-- },
-- ped = {model = 's_m_y_airworker', anim = {}},
-- gradeRestricted = true, -- if grade restricted you need to set vehicles for grades, if not you need to set vehicles for all
-- -- VEHICLES FOR ALL GRADES
-- -- vehicles = {
-- -- ['washington'] = { -- spawn name
-- -- label = 'Washington',
-- -- mods = { -- https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua [check all mods here]
-- -- ['color1'] = 1, ['color2'] = 1,
-- -- ['livery'] = 1
-- -- },
-- -- },
-- -- },
-- vehicles = {
-- ['0'] = {
-- ['washington'] = { -- spawn name
-- label = 'Washington',
-- mods = { -- https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua [check all mods here]
-- ['color1'] = 1, ['color2'] = 1,
-- ['livery'] = 1
-- },
-- }
-- }
-- }
-- },
}
while not Config do Wait(1) end
Config.CourtHearings = {}
Config.CourtHearings.TVs = { -- TV's with incoming court hearings
['LegionSquare_1'] = {
coords = vector3(93.815, -854.852, 35.300),
rotation = vector3(0.0, 0.0, -20.671),
distance = 30.0 -- spawn distance
},
-- FM CITY HALL LS
-- ['LS_1'] = {
-- coords = vector3(-508.8709, -609.7953, 36.2965),
-- rotation = vector3(0.0, 0.0, 268.4732),
-- distance = 30.0 -- spawn distance
-- },
}
Config.CourtHearings.TVPlayer = { -- playable TV's
['LegionSquare_1'] = {
coords = vec3(65.748207, -860.823486, 37.217072),
menuCoords = vector3(64.3359, -859.8571, 35.3171),
rotation = vec3(0.000000, 0.000000, -159.000000),
scale = vector3(1.35, 1.35, 1.35), -- scale x, y, z
distance = 7.5, -- spawn distance
jobs = {['doj'] = 0}, -- which jobs can manage the TV
},
-- FM CITY HALL LS
-- ['LS_1'] = {
-- coords = vec3(-524.146790, -585.560364, 37.803066),
-- menuCoords = vector3(-523.7545, -583.8952, 35.7031),
-- rotation = vec3(000000, 0.000000, -90.257896),
-- scale = vector3(1.35, 1.35, 1.35), -- scale x, y, z
-- distance = 7.5, -- spawn distance
-- jobs = {['doj'] = 0}, -- which jobs can manage the TV
-- },
}
Config.CourtHearings.Gavels = { -- Gavel's on Court hearings
['LegionSquare_1'] = {
coords = vector3(72.4, -855.5, 35.6),
jobs = {['doj'] = 0},
volume = 0.5, -- sound volume [0.0 - 1.0]
distance = 17.5 -- sound distance
},
-- FM CITY HALL LS
-- ['LS_1'] = {
-- coords = vector3(-516.02, -589.89, 36.2),
-- jobs = {['doj'] = 0},
-- volume = 0.5, -- sound volume [0.0 - 1.0]
-- distance = 17.5 -- sound distance
-- },
}
Config.CourtHearings.Microphones = {
['LegionSquare_Judge'] = {
coords = vector3(72.0226, -854.1483, 36.1092),
},
['LegionSquare_Defense'] = {
coords = vector3(77.6876, -859.0306, 35.0172),
},
['LegionSquare_Prosecutor'] = {
coords = vector3(79.4877, -854.0317, 35.0172),
},
-- FM CITY HALL LS
-- ['LS_Judge'] = {
-- coords = vector3(-516.6210, -589.0395, 36.2142),
-- },
-- ['LS_Defense'] = {
-- coords = vector3(-518.3167, -595.8582, 35.6031),
-- },
-- ['LS_Prosecutor'] = {
-- coords = vector3(-513.0540, -595.8336, 35.6031),
-- },
}
while not Config do Wait(1) end
--@param coords vector3
--@param radius number
--@param jobs table
Config.Printers = {
['CityHall_1'] = {
coords = vector3(70.38, -901.29, 35.15),
radius = 0.5,
jobs = {
['doj'] = 0,
},
},
['CityHall_2'] = {
coords = vector3(-543.8696, -202.8657, 38.2151),
radius = 0.5,
jobs = {
['doj'] = 0,
},
},
-- FM CITY HALL LS
-- ['LS_CityHall_1'] = {
-- coords = vector3(-560.58, -603.95, 35.65),
-- radius = 0.5,
-- jobs = {
-- ['doj'] = 0,
-- },
-- },
-- ['LS_CityHall_2'] = {
-- coords = vector3(-567.14, -604.0, 35.7),
-- radius = 0.5,
-- jobs = {
-- ['doj'] = 0,
-- },
-- },
}
Config.Metal_Detector = {}
Config.Metal_Detector.Points = {
['LegionSquare_1'] = {
coords = vector3(96.9927, -896.3307, 35.0172),
cooldown = 10, -- cooldown per player in seconds [to prevent spam]
},
['LegionSquare_2'] = {
coords = vector3(97.9569, -893.8645, 35.0170),
cooldown = 10, -- cooldown per player in seconds [to prevent spam]
},
-- FM CITY HALL LS
-- ['LS_1'] = {
-- coords = vector3(-546.4811, -627.0413, 35.6031),
-- cooldown = 10, -- cooldown per player in seconds [to prevent spam]
-- },
-- ['LS_2'] = {
-- coords = vector3(-543.9293, -627.2004, 35.6031),
-- cooldown = 10, -- cooldown per player in seconds [to prevent spam]
-- },
}
Config.Metal_Detector.Items = { -- which items will be detected
['WEAPON_'] = true, -- all weapons
}