gpScripts Docs
StoreDiscordYoutube
  • 📔gpScripts
  • Clothingshop
    • Installation
    • Developers
      • Client
  • 💰InsuranceSystem
    • Installation
    • Developers
      • Client
      • Server
  • 📲Businesscards
    • Installation
    • Developers
      • Events
  • 🛡️visumsystem
    • Installation
    • Developers
      • Commands
      • Exports
      • Events
    • Code Snippets
      • QB-Garages
  • ☎️Emergencyphone
    • Installation
    • Common mistakes
      • Common mistakes
    • Developer
      • Events
  • 💵Tax-System
    • Installation
      • Step 1 - SQL-File
      • Step 2 - [QB-Core] Changes
      • Step 3 - [ESX] Changes
      • Step 4 - Restart your server
      • Step 5 - Set first deduction date
    • Exclude inactive vehicles
    • Common mistakes
      • Common mistakes
    • Developer
      • Events
Powered by GitBook
On this page

Was this helpful?

  1. Tax-System
  2. Installation

Step 5 - Set first deduction date

In order for the system to know when to start calculating and deducting taxes, we need to set the first date for the first tax settlement. (You only have to do this once!)

  1. Set Config.setupMode in your Config to true

    Config.setupMode = true
  2. Restart the script via the server console

  3. Use the command setTaxDate YYYY-MM-DD HH:MM:SS to set the first date example: setTaxDate 2023-12-16 20:00:00 In this case the taxes would be deducted at 2023-12-16 20:00:00 for the first time. The next date is generated automatically, depending on the days you have set (Config.payTaxInterval), and saved in the database.

  4. Set Config.setupMode in your Config to false

    Config.setupMode = false
  5. Restert the script via the server console

PreviousStep 4 - Restart your serverNextExclude inactive vehicles

Last updated 1 year ago

Was this helpful?

💵