Nass Scripts
  • Nass Scripts
  • 📚nass_lib
    • Dependencies
    • Changelog
    • Config
  • Scripts
    • 💰Serverstore
    • 🎵Music Player
      • Dependencies
      • Installation
      • Changelog
      • Config
    • 👮Bossmenu
      • Dependencies
      • Installation
      • Changelog
      • Exports
        • Server Exports
      • Config
      • Common Issues
    • 💵Billing
      • Dependencies
      • Installation
      • Changelog
      • Exports
        • Server Exports
      • Config
      • Common Issues
    • 🔫Paintball
      • Dependencies
      • Installation
      • Changelog
      • Exports
        • Client Exports
      • Config
      • Common Issues
    • 💡Neons
      • Installation
      • Changelog
      • Exports
        • Client Exports
      • Config
    • 🏎️Dragstrips
      • Dependencies
      • Installation
      • Changelog
      • Config
Powered by GitBook
On this page
  1. Scripts
  2. Billing

Config

Here you can get a preview of the config files.

Config = {}
Config.locale = Locales["en"] -- en | es | fr | de | it | pt | ru| zh

Config.invoicePrefix = "NASS-"
Config.defaultAccount = "bank" --Which account should paid invoices go to
Config.autoPay = {
    enabled = true,
    allowNegative = false,
    interval = 7, -- How many days until the invoice is automatically paid
}

Config.finance = {
    enabled = true,
    interval = 7, -- How many days should the finance move the due date by? This is for autopay above
    minimumPercentage = 25, --What is the minimum percent of the original amount that needs to be payed off each time
}

Config.command = {
    name = "billing",
    keybinding = {
        enabled = true,
        description = "Open Billing Menu",
        key = "F7",
    }
}

Config.discordLogs = true --Set the webhook at the top of the server/unlocked.lua file

Config.signatures = {
    -- Signature storage method
    -- Options "fivemerr" || "base64"
    -- Highly recommended to use fivemerr, base64 can cause lag 
    -- If you are using fivemerr you must set your apikey at the top of the server/unlocked.lua file
    method = "fivemerr"
}

Config.acceptInvoice = { --Allow players to accept and deny invoices sent to them.
    business = false,
    personal = true,
    timeout = 10, --How many seconds until the invoice is automatically denied
    controls = { -- https://docs.fivem.net/docs/game-references/controls/#controls
        deny = {194, "INPUT_FRONTEND_RRIGHT"}, --Backspace
        accept = {215, "INPUT_FRONTEND_ENDSCREEN_ACCEPT"}, -- Enter
    },
}

Config.allowedJobs = {
    --Which jobs are allowed to send business invoices
    --Which grade is allowed to access the invoices dashboard
    ["police"] = {grade = 3},
    ["ambulance"] = {grade = 3},
}

-- Simple
-- Minimal
-- Modern
Config.defaultTemplate = "Minimal"

PreviousServer ExportsNextCommon Issues

Last updated 3 months ago

💵