⚙️Configuration
Config = {
Debug = true, -- dont enable in production mode
PhoneApp = {
Name = "Business",
Description = "Connect with your business partners",
defaultApp = false, -- OPTIONAL if set to true, app should be added without having to download it,
},
GradeForMOTDChange = 2, -- min. job grade that is required to change the MOTD, if set to 0, everyone can change it
MinGradeForDownrank = 2, -- min. job grade that is required to downrank a player, this is used if the job is not in the RankSettings table
MinGradeForUpRank = 2, -- min. job grade that is required to uprank a player, this is used if the job is not in the RankSettings table
RankSettings = {
['police'] = {
MinGradeForDownrank = 2,
MinGradeForUpRank = 2,
},
},
ServerFetchCooldown = 5 * 1000, -- 30 seconds, how often the app will fetch employees, stops players spamming the refresh if opening the app
Framework = {
SetJobEvent = 'esx:setJob', -- the event that is triggered when a player changes their job, this is used to update the job of the player in the app
es_extenedName = 'es_extended',
useExport = true, -- if true, the app will use the export to get the shared object, if false, it will use the ESX global variable
},
Language = {
fallback = 'de',
resources = {
['en'] = {
motd = {
title = "Message of the Day",
},
members = {
member = "Members",
status = {
online = "Online",
offline = "Offline"
}
},
rank = "Grade",
modal = {
title = "MOTD Change",
set = "Change Message",
cancel = "Cancel",
}
},
['de'] = {
motd = {
title = "Nachricht des Tages",
},
members = {
member = "Mitglieder",
status = {
online = "Online",
offline = "Offline"
}
},
rank = "Rang",
modal = {
title = "MOTD ändern",
set = "Nachricht ändern",
cancel = "Abbrechen",
}
}
}
}
}If you have any configuration questions or errors, feel free to open a ticket on our Discord!
Last updated