forked from Simnation/Main
76 lines
No EOL
2.5 KiB
Lua
76 lines
No EOL
2.5 KiB
Lua
Config = {}
|
|
|
|
--[[
|
|
documentation is here:
|
|
https://daburnergermany.gitbook.io/mymdt
|
|
]]
|
|
|
|
|
|
Config.Debug = false
|
|
|
|
--Do not touch! The script searches for your framework by itself.
|
|
Config.Framework = nil
|
|
|
|
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
|
|
|
|
if isESXLoaded then
|
|
Config.Framework = "ESX"
|
|
else
|
|
Config.Framework = "QB"
|
|
end
|
|
|
|
Config.JobsCreator = {
|
|
Jaksam = true
|
|
}
|
|
|
|
Config.UseLunarMultijob = false
|
|
|
|
Config.HotkeyOpen = 57 --here f.e. F10 .. find index here .. https://docs.fivem.net/docs/game-references/controls/
|
|
Config.HotkeyOpenRadioState = 167 --here f.e. F6 .. find index here .. https://docs.fivem.net/docs/game-references/controls/
|
|
|
|
Config.MyMechanicMDT = {
|
|
usePoliceData = false --only set this to true if sync is off otherwise this will be turned off!
|
|
}
|
|
|
|
--register command + command name
|
|
Config.RegisterCommand = true
|
|
Config.CommandName = "service"
|
|
|
|
|
|
|
|
local useExportSettings = ExportSettings ~= nil
|
|
local useSyncSettings = SyncSettings ~= nil and SyncSettings.MainData ~= nil
|
|
|
|
Config.FilesAreCreatedByExport = false
|
|
Config.VehiclesAreCreatedByExport = false
|
|
Config.FilesAreCreatedBySync = false
|
|
Config.VehiclesAreCreatedBySync = false
|
|
|
|
if useExportSettings then
|
|
Config.FilesAreCreatedByExport = ExportSettings.SaveCitizenByExport
|
|
Config.VehiclesAreCreatedByExport = ExportSettings.SaveVehiclesByExport
|
|
end
|
|
|
|
if useSyncSettings then
|
|
Config.FilesAreCreatedBySync = SyncSettings.MainData.active == true and SyncSettings.MainData.Types.Users == true
|
|
Config.VehiclesAreCreatedBySync = SyncSettings.MainData.active == true and SyncSettings.MainData.Types.Vehicles == true
|
|
|
|
if SyncSettings.MainData.active == true and Config.MyMechanicMDT.usePoliceData then
|
|
Config.MyMechanicMDT.usePoliceData = false
|
|
print("INFO - Config.MyMechanicMDT.usePoliceData is set to false due to active sync!")
|
|
end
|
|
end
|
|
|
|
if Config.FilesAreCreatedByExport and Config.FilesAreCreatedBySync then
|
|
Config.FilesAreCreatedByExport = false
|
|
print("INFO - Borth SyncSettings.MainData.Vehicles and ExportSettings.SaveCitizenByExport are active! Recommented to only one!")
|
|
end
|
|
|
|
if Config.VehiclesAreCreatedByExport and Config.VehiclesAreCreatedBySync then
|
|
Config.VehiclesAreCreatedByExport = false
|
|
print("INFO - Borth SyncSettings.MainData.Users and ExportSettings.SaveVehiclesByExport are active! Recommented to only one!")
|
|
end |