Configuration
Here is a description on all the configurations you can do on the resource.
The script is fully functional for ESX AND QBCORE.
Framework = {
ESX = {
use = false,
name = "es_extended",
export = "getSharedObject",
serverObject = "esx:getSharedObject",
},
QBCORE = {
use = true,
name = "qb-core",
export = "GetCoreObject",
}
};
Design = {
Preset = "none"; -- Presets to choose from ['none', 'custom', 'purple', 'blue']. You can see full documentation on my https://force-developing.gitbook.io/force_invoices/
BackgroundColor = "#37474f";
BoxBackgroundColor = "#455a64";
MainTab = "invoices"; -- This could be either (invoices, sent or send). This changes the tab it opens when opening menu
};
SelectedLocale = "sv";
BossRoleName = "Cheif";
UseCommand = true; -- /invoices
UseItem = false; -- item name: invoices
-- EVENT:: TriggerEvent("force_invoices:openMenu", "Work", "invoices") "Work" is either Work or Person and second string is wich tab to openThats the shared config where everything is pretty self explanatory
SendInvoiceToYourself = true;There's the server config where you can toggle if you should be able to send invoices to yourself
Jobs = {
["police"] = "Polisen",
["ambulance"] = "Sjukvården",
["mechanic"] = "Mekonommen",
}And for last the client config where all the selectable jobs is located with there label!
Last updated