Configuration
All Wasabi Scripts contain various editable and unobscured files containing, exports, client and server functions, configuration methods and more. This is the main configuration file for our Complete Billing (wasabi_billing resource.
View Configuration
-----------------For support, scripts, and more----------------
--------------- https://discord.gg/wasabiscripts -------------
---------------------------------------------------------------
Config, Strings = {}, {}
---------------------------------------------------- LANGUAGE SETTINGS ------------------------------------------------------------
-- Options are 'en' (English), 'fr' (French), 'cn' (Chinese Simplified), 'tw' (Chinese Traditional), 'de' (German), --
-- 'it' (Italian), 'jp' (Japanese), 'ko' (Korean), 'pl' (Polish), 'pt' (Portuguese), 'es' (Spanish), 'hi' (Hindi), 'nl' (Dutch) --
-----------------------------------------------------------------------------------------------------------------------------------
Config.Language = 'en'
Config.CheckForUpdates = true -- If you want to check for updates (Recommended)
Config.AutomaticAddDatabaseTables = true -- If you want to automatically add the database tables to the database
Config.Debug = false -- If you want to enable the debug mode
Config.Currency = '$' -- The currency to use for the invoice
Config.CurrencyOnRight = false -- If you want the currency symbol on the right
Config.Commands = { -- The commands to open the billing menu
openBilling = 'billing',
createInvoice = 'createinvoice',
payReference = 'payreference',
inspectCitizen = 'inspectcitizen',
}
Config.OpenBillingKeybind = 'F7' -- The keybind to open the billing menu
Config.ReferenceIdPrefix = 'LS-' -- The prefix for the reference id
Config.MaxDaysToPayInvoice = 6 -- The max days to pay the invoice
Config.RemoveMoneyAutomaticallyAfterMaxDays = true -- If you want to remove the money from the billing automatically after the max days
Config.MaxCustomAmount = 10000 -- The max amount for the custom amount
Config.VATPercentage = 10 -- The VAT percentage for the invoice (Example if you bill 100, the VAT will be 10, and the total will be 110)
Config.EnableReceiveVATSociety = false -- If you want to receive the VAT of ALL bills to a society
Config.SocietyToReceiveVAT = 'judge' -- The society you want to receive the VAT from
Config.PreferredPaymentMethod = 'bank' -- The preferred payment method to pay the invoice
Config.InvoiceItem = 'invoice' -- The item to give to the player when they send an invoice
Config.SocietiesSettings = {
allowedSocietiesToSendInvoices = { -- The societies that are allowed to send invoices
["police"] = 1,
["ambulance"] = 1,
["mechanic"] = 1
},
allowedSocietiesToReceiveInvoices = { -- The societies that are allowed to receive invoices
"police",
"ambulance",
"mechanic"
},
minGradesToCheckAndPaySocietyInvoices = { -- The minimum grade to check and pay the society invoices on the dashboard
["police"] = 4,
["ambulance"] = 1,
["mechanic"] = 1
},
percentageToPlayerReceiveFromSentInvoice = { -- The percentage of the invoice that the invoicer will receive from the sent invoice
["police"] = 5,
["ambulance"] = 5,
["mechanic"] = 5
}
}
Config.InvoiceTypes = {
["traffic"] = {
name = "Traffic Violations",
jobs = {"police", "sheriff"},
reasons = {
["Speeding"] = { amount = 50 },
["Reckless Driving"] = { amount = 75 },
["Illegal Parking"] = { amount = 25 },
["Red Light Violation"] = { amount = 60 },
["Dangerous Overtaking"] = { amount = 80 },
["Driving Under Influence"] = { amount = 150 },
["Unlicensed Vehicle"] = { amount = 100 }
}
},
["property"] = {
name = "Property Damage",
jobs = {"police", "sheriff"},
reasons = {
["Property Destruction"] = { amount = 200 },
["Vandalism"] = { amount = 150 },
["Breaking and Entering"] = { amount = 300 },
["Arson"] = { amount = 500 },
["Graffiti"] = { amount = 75 },
["Vehicle Damage"] = { amount = 120 }
}
},
["weapons"] = {
name = "Weapons Violations",
jobs = {"police", "sheriff"},
reasons = {
["Illegal Weapon Possession"] = { amount = 400 },
["Weapon Use"] = { amount = 600 },
["Weapon Trafficking"] = { amount = 1000 },
["Unlicensed Weapon"] = { amount = 350 },
["Weapon Threat"] = { amount = 450 }
}
},
["drugs"] = {
name = "Drug Related",
jobs = {"police", "sheriff"},
reasons = {
["Drug Possession"] = { amount = 300 },
["Drug Trafficking"] = { amount = 800 },
["Public Consumption"] = { amount = 150 },
["Drug Production"] = { amount = 1200 }
}
},
["hospital"] = {
name = "Treatment Related",
jobs = {"ambulance"},
reasons = {
["Medical Treatment"] = { amount = 300 },
["Prescription"] = { amount = 200 },
}
},
["global"] = { -- If not added the jobs variable, the invoice type will be available for all jobs
name = "Global",
reasons = {
["Vehicle Contract"] = { amount = 300 },
["Property Contract"] = { amount = 200 },
}
}
}
-- Advanced Settings (Likely no need to change these)
Config.PlayersTable = wsb.framework == "qb" and "players" or "users" -- The table where the players data is stored
Config.IdentifierColumn = wsb.framework == "qb" and "citizenid" or "identifier" -- The column where the citizen id/identifier is stored
Config.MoneyColumn = wsb.framework == "qb" and "money" or "accounts" -- The column where the money is stored