forked from Simnation/Main
122 lines
3.7 KiB
Lua
122 lines
3.7 KiB
Lua
Config = {}
|
|
|
|
|
|
local isESXLoaded, isQBLoaded = GetResourceState('es_extended') == 'started', GetResourceState('qb-core') == 'started'
|
|
if not isESXLoaded and not isQBLoaded then
|
|
print("^1ERROR - ESX not started and QB-Core not started! ^7")
|
|
print("^1Config.Framework is set to QB, this could cause issues if you use ESX ^7")
|
|
end
|
|
|
|
Config.Framework = nil
|
|
if isESXLoaded then
|
|
Config.Framework = "ESX" --never change this!
|
|
else
|
|
Config.Framework = "QB" --never change this!
|
|
end
|
|
|
|
|
|
Config.Locale = 'en'
|
|
|
|
-- SYSTEM SECTION
|
|
--[[
|
|
documentation for Config.Systems:
|
|
https://daburnergermany.gitbook.io/mymdt/mymechanicmdt/info/general-config/configure-systems-jobs
|
|
|
|
differences between jobs in the same system to different systems with same behaviour
|
|
https://daburnergermany.gitbook.io/mymdt/mymechanicmdt/info/general-config/differences-between-jobs-and-behavior
|
|
]]
|
|
Config.Systems = {
|
|
["mechanic"] = {
|
|
MainJob = {
|
|
|
|
|
|
["mechanic"] = {
|
|
offdutyjobs = {"off-mechanic","offmechanic"},
|
|
bossranks = {"boss","chief"}
|
|
},
|
|
--[[
|
|
["bennys"] = {
|
|
offdutyjobs = {"off-bennys", "offbennys"},
|
|
bossranks = {"boss","chief"}
|
|
}
|
|
--]]
|
|
}
|
|
,theme = "dark" --here are all defined color schemes : https://daisyui.com/docs/themes/
|
|
,behaviour = "mechanic" --possible values: mechanic
|
|
,systemName = 'Mechanic'
|
|
},
|
|
}
|
|
-- END SYSTEM SECTION
|
|
|
|
|
|
--[[
|
|
Set the length here how long MOT remains valid
|
|
]]
|
|
Config.MOT_Validity = {
|
|
num = 1 --never change it below 1, no decimal values (this will get u errors when calculating)
|
|
,type = "W" -- possible types d = days, w = weeks, m = month, y = year.. never set to empty or nil, just the previous mentioned, otherwise days is selected
|
|
}
|
|
|
|
|
|
--[[
|
|
translations.. there ui translations are in /html/locale/
|
|
]]--
|
|
Config.NoSystemText = {
|
|
["de"] = 'Es gibt kein System für deinen Job!',
|
|
["en"] = 'There is no system for your job!',
|
|
["dk"] = 'Der findes ikke noget system til dit job!',
|
|
["fr"] = 'Il n\'y a pas de système pour votre travail!',
|
|
["nl"] = 'Er is geen systeem voor jouw baan!',
|
|
["it"] = 'Non esiste un sistema per il vostro lavoro!',
|
|
}
|
|
Config.FixedZonesText = {
|
|
["de"] = 'Drücke ~INPUT_CONTEXT~ um den PC zu nutzen.',
|
|
["en"] = 'Press ~INPUT_CONTEXT~ to use the pc.',
|
|
["dk"] = 'Tryk på ~INPUT_CONTEXT~ for at bruge pc\'en.',
|
|
["fr"] = 'Appuyez sur ~INPUT_CONTEXT~ pour utiliser le PC.',
|
|
["nl"] = 'Druk op ~INPUT_CONTEXT~ om de pc te gebruiken.',
|
|
["it"] = 'Premere ~INPUT_CONTEXT~ per utilizzare il pc.',
|
|
}
|
|
Config.NuiNotReadyText = {
|
|
["de"] = 'Tablet noch nicht bereit..',
|
|
["en"] = 'Tablet not yet ready..',
|
|
["dk"] = 'Tabletten er ikke klar endnu..',
|
|
["fr"] = 'La tablette n\'est pas encore prête..',
|
|
["nl"] = 'Tablet nog niet klaar..',
|
|
["it"] = 'Il tablet non è ancora pronto...',
|
|
}
|
|
Config.NuiNowReadyText = {
|
|
["de"] = 'Tablet ist nun bereit.',
|
|
["en"] = 'Tablet is now ready.',
|
|
["dk"] = 'Tabletten er nu klar.',
|
|
["fr"] = 'La tablette est prête.',
|
|
["nl"] = 'Tablet is nu klaar.',
|
|
["it"] = 'Il tablet è pronto.',
|
|
}
|
|
|
|
--[[
|
|
List of areas where tablet can be opened
|
|
If table is empty no areas are used
|
|
]]--
|
|
Config.UseFixedZones = true
|
|
Config.DrawMarkerDistance = 20.0
|
|
Config.EnteredMarkerDistance = 2.0
|
|
Config.FixesZonesMarkerCfg = { type = 1, x = 2.0, y = 2.0, z = 0.5, r = 102, g = 0, b = 102, a = 100, rotate = false }
|
|
Config.FixedZones = {
|
|
--vector3(453.55, -983.75, 29.69), --Misson Row PD
|
|
--vector3(312.29, -597.218, 43.2821), --Pillbox Hill MD
|
|
}
|
|
|
|
--config RadioHUD
|
|
Config.RadioHUD = {
|
|
Position = {
|
|
vertical = "right" --left, middle, right
|
|
,horizontal = "middle" --bottom top middle
|
|
}
|
|
,extraMargins={ --margins in percentage
|
|
top = 0 --if vertical not middle
|
|
,left = 0 --if horizontal not middle
|
|
,bottom = 0 --if vertical not middle
|
|
,right = 0 --if horizontal not middle
|
|
}
|
|
}
|