208 lines
5.9 KiB
Lua
208 lines
5.9 KiB
Lua
Config = {}
|
|
|
|
Config.Framework = 'esx' -- esx, oldesx, qb, oldqb
|
|
Config.SQL = "oxmysql" -- oxmysql, ghmattimysql, mysql-async
|
|
Config.newManagementSystem = true -- true is qb-banking false qb-managment
|
|
Config.CreateJobAccount = true -- is only for qb-banking, if there is no data for profession in sql, it creates automatically
|
|
Config.ExampleProfilePicture = "./images/testpp.png"
|
|
|
|
Config.Bills = {
|
|
["police"] = {
|
|
{
|
|
label = "Traffic Violation Ticket",
|
|
amount = 100,
|
|
},
|
|
{
|
|
label = "Parking Violation Ticket",
|
|
amount = 50,
|
|
},
|
|
{
|
|
label = "Reckless Driving Ticket",
|
|
amount = 200,
|
|
},
|
|
},
|
|
["ambulance"] = {
|
|
{
|
|
label = "Traffic Violation Ticket",
|
|
amount = 100,
|
|
},
|
|
{
|
|
label = "Parking Violation Ticket",
|
|
amount = 50,
|
|
},
|
|
{
|
|
label = "Reckless Driving Ticket",
|
|
amount = 200,
|
|
},
|
|
|
|
},
|
|
["mechanic"] = {
|
|
{
|
|
label = "Traffic Violation Ticket",
|
|
amount = 100,
|
|
},
|
|
{
|
|
label = "Parking Violation Ticket",
|
|
amount = 50,
|
|
},
|
|
{
|
|
label = "Reckless Driving Ticket",
|
|
amount = 200,
|
|
},
|
|
{
|
|
label = "Traffic Violation Ticket",
|
|
amount = 100,
|
|
},
|
|
{
|
|
label = "Parking Violation Ticket",
|
|
amount = 50,
|
|
},
|
|
{
|
|
label = "Reckless Driving Ticket",
|
|
amount = 200,
|
|
},
|
|
},
|
|
}
|
|
|
|
Config.UsableItem = false -- leave blank or set to false to disable item name | item control for open menu
|
|
Config.EnableRegisterKeyMapping = true
|
|
Config.EnableRegisterKeyMappingKey = "F6"
|
|
|
|
--[[
|
|
if set to true adjust the keys down below by referencing this url
|
|
-- https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
|
|
|
|
if set to false adjust the keys down below by referencing this url
|
|
-- https://docs.fivem.net/docs/game-references/controls/
|
|
|
|
]]
|
|
--
|
|
|
|
Config.OpenBillMenu = 167 --- job menu open key Y
|
|
|
|
Config.HowManyDays = 7 -- after how many days will it double
|
|
Config.Tax = 0.18 -- 18% tax
|
|
|
|
Config.SendInvoiceAsStaffAccount = false -- true can send invoices as a staff account. -- false cannot send invoices as a staff account
|
|
|
|
Config.AllowBillingJobs = {
|
|
['police'] = 'Police',
|
|
['ambulance'] = 'EMS',
|
|
['mechanic'] = 'Mechanic'
|
|
}
|
|
|
|
Config.SearchPlayerBills = {
|
|
['police'] = 'Police',
|
|
['ambulance'] = 'EMS',
|
|
['mechanic'] = 'Mechanic'
|
|
}
|
|
|
|
Config.Admin = {
|
|
-- ['CNQ25429'] = true, -- citizen id or steam or license
|
|
|
|
}
|
|
|
|
Config.NotificationText = {
|
|
['paybill'] = {
|
|
text = "%s hat seine Rechnung über %s $ bezahlt",
|
|
type = "success"
|
|
},
|
|
['notacces'] = {
|
|
text = "Du hast keinen Zugang zu dieser Immobilie",
|
|
type = "error"
|
|
},
|
|
['cancelledbill'] = {
|
|
text = "Rechnung storniert.",
|
|
type = "error"
|
|
},
|
|
['wrongbillid'] = {
|
|
text = "Falsche Rechnungs-ID.",
|
|
type = "error"
|
|
},
|
|
['paidbill'] = {
|
|
text = "Diese Rechnung wurde bereits bezahlt.",
|
|
type = "error"
|
|
},
|
|
['notowner'] = {
|
|
text = "Du bist nicht der Eigentümer dieser Immobilie",
|
|
type = "success"
|
|
},
|
|
['notmoney'] = {
|
|
text = "Du hast nicht genug Geld",
|
|
type = "error"
|
|
},
|
|
['undefinedjob'] = {
|
|
text = "Die Rechnungsadresse konnte nicht gefunden werden, daher kannst du keine Pauschalzahlung vornehmen",
|
|
type = "error"
|
|
},
|
|
['errormoney'] = {
|
|
text = "Beim Bezahlen der Rechnung ist ein Fehler aufgetreten",
|
|
type = "error"
|
|
},
|
|
['notfoundjobvault'] = {
|
|
text = "Die Rechnungsadresse konnte nicht gefunden werden, daher kannst du keine Pauschalzahlung vornehmen",
|
|
type = "error"
|
|
},
|
|
['notfindplayer'] = {
|
|
text = "Spieler nicht gefunden",
|
|
type = "error"
|
|
},
|
|
['notbillyour'] = {
|
|
text = "Diese Rechnung gehört nicht dir",
|
|
type = "error"
|
|
},
|
|
['writeid'] = {
|
|
text = "Du musst die zu fakturierende Person angeben.",
|
|
type = "error"
|
|
},
|
|
['amountinvoice'] = {
|
|
text = "Gib den Rechnungsbetrag ein.",
|
|
type = "error"
|
|
},
|
|
['reasonsection'] = {
|
|
text = "Fülle das Begründungsfeld aus.",
|
|
type = "error"
|
|
},
|
|
['createbill'] = {
|
|
text = "%s hat dir eine Rechnung über %s $ geschickt.",
|
|
type = "success"
|
|
},
|
|
['createdbill'] = {
|
|
text = "Du hast %s eine Rechnung über %s $ geschickt.",
|
|
type = "success"
|
|
},
|
|
['offlinenotplayer'] = {
|
|
text = "Spielerdaten nicht gefunden",
|
|
type = "error"
|
|
},
|
|
['beforewait'] = {
|
|
text = "Bitte warte, bevor du eine weitere Anfrage sendest.",
|
|
type = "error"
|
|
},
|
|
['notallowpersonelaccount'] = {
|
|
text = "Du kannst keine Rechnung von deinem persönlichen Konto senden.",
|
|
type = "error"
|
|
},
|
|
['noypaybill'] = {
|
|
text = "hat keine ausstehenden Rechnungen",
|
|
type = "error"
|
|
},
|
|
}
|
|
|
|
|
|
Config.Notification = function(message, type, isServer, src) -- You can change here events for notifications
|
|
if isServer then
|
|
if Config.Framework == "esx" then
|
|
TriggerClientEvent("esx:showNotification", src, message)
|
|
else
|
|
TriggerClientEvent('QBCore:Notify', src, message, type, 1500)
|
|
end
|
|
else
|
|
if Config.Framework == "esx" then
|
|
TriggerEvent("esx:showNotification", message)
|
|
else
|
|
TriggerEvent('QBCore:Notify', message, type, 1500)
|
|
end
|
|
end
|
|
end
|