1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[mdt]/myEmergency/config.lua
Max 81f11b9861 resources/[jobs]/[mdt]/myEmergency/config.lua aktualisiert
Signed-off-by: Max <max@evolution-state-life.de>
2025-08-14 14:26:53 +02:00

196 lines
No EOL
6.8 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
--Do not touch! The script searches for your framework by itself.
Config.Framework = nil
if isESXLoaded then
Config.Framework = "QB" --never change this!
else
Config.Framework = "QB" --never change this!
end
Config.Locale = 'de'
Config.UseMotDateFromMyMechanicMDT = true -- allow use data from the mot from myMechanicMDT (via plate)
Config.showLastMotDetailFromMyMechanicMDT = true -- allow show last mot-details from myMechanicMDT (via plate)
Config.showPartAcceptanceFromMyMechanicMDT = true -- allow show last part-acceptance from myMechanicMDT (via plate)
Config.UseWeaponRegister = true --additional
Config.HandleParagraphsAsNumber = false --if you type your paragraphs like 1.1 etc without chars
-- ADDITIONAL SCRIPTS
Config.UseMyImpound = false
Config.UseMyProperty = false --will only work if the file-sync is active. either UseQsHousing or UseMyProperty can be true
Config.UseQsHousing = false --will only work if the file-sync is active. either UseQsHousing or UseMyProperty can be true
Config.UseMySpeedcam = false
Config.UseMyPrison = false
-- END ADDITIONAL SCRIPTS
-- SYSTEM SECTION
--[[
documentation for Config.Systems:
https://daburnergermany.gitbook.io/mymdt/myemergency-2.0/info/general-config/configure-systems-jobs
differences between jobs in the same system to different systems with same behaviour
https://daburnergermany.gitbook.io/mymdt/myemergency-2.0/info/general-config/differences-between-jobs-and-behavior
]]
Config.Systems = {
["police"] = {
MainJob = {
["police"] = {
offdutyjobs = {"off-police","offpolice"},
bossranks = {"9","director_of_marshals","assistant_chief"}
},
["marshal"] = {
offdutyjobs = {"off-sheriff", "offsheriff"},
bossranks = {"director_of_marshals"}
},
}
,theme = "dark" --here are all defined color schemes : https://daisyui.com/docs/themes/
,behaviour = "police" --possible values: police, medic, nil
,systemName = 'Police' --the systemname displayed when file is shared!
},
["medic"] = {
MainJob = {
["ambulance"] = {
offdutyjobs = {"off-ambulance","offambulance"},
bossranks = {"leitung_lsmd","stv__leitung_lsmd"}
}
},
theme = "dark", --here are all defined color schemes : https://daisyui.com/docs/themes/
behaviour = "medic" --possible values : police, medic, nil
,systemName = 'Ambulance' --the systemname displayed when file is shared!
},
}
-- END SYSTEM SECTION
--[[
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 = false
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
}
}
--revent start of multiple housing scripts
if Config.UseMyProperty and Config.UseQsHousing then
Config.UseMyProperty = false
Config.UseQsHousing = false
print("Config.UseMyProperty is now set to false, Config.UseQsHousing is also true!")
print("Config.UseQsHousing is now set to false, Config.UseMyProperty is also true!")
end
local useExportSettings = ExportSettings ~= nil
local useSyncSettings = SyncSettings ~= nil and SyncSettings.MainData ~= nil
local FilesAreCreatedByExport = false
local FilesAreCreatedBySync = false
if useExportSettings then
FilesAreCreatedByExport = ExportSettings.SaveCitizenByExport
end
if useSyncSettings then
FilesAreCreatedBySync = SyncSettings.MainData.active == true and SyncSettings.MainData.Types.Users == true
end
-- prevent myProperties = true if esx is not loaded
if not isESXLoaded and Config.UseMyProperty then
Config.UseMyProperty = false
elseif GetResourceState('myProperties') ~= 'started' and Config.UseMyProperty then
Config.UseMyProperty = false
print("Config.UseMyProperty is now set to false, myProperties not started!")
elseif (Config.UseMyProperty and not FilesAreCreatedByExport and not FilesAreCreatedBySync) then
Config.UseMyProperty = false
print("Config.UseMyProperty is now set to false, Neither file sync nor file creation via export is active!")
end
if GetResourceState('qs-housing') ~= 'started' and Config.UseQsHousing then
Config.UseQsHousing = false
print("Config.UseQsHousing is now set to false, qs-housing not started!")
elseif Config.UseQsHousing and not FilesAreCreatedByExport and not FilesAreCreatedBySync then
Config.UseQsHousing = false
print("Config.UseQsHousing is now set to false, Neither file sync nor file creation via export is active!")
end
if GetResourceState('myImpound') ~= 'started' and Config.UseMyImpound then
Config.UseMyImpound = false
print("Config.UseMyImpound is now set to false, myImpound not started!")
end
if GetResourceState('mySpeedcam') ~= 'started' and Config.UseMySpeedcam then
Config.UseMySpeedcam = false
print("Config.UseMySpeedcam is now set to false, mySpeedcam not started!")
end