Exclude inactive vehicles

Would you like inactive vehicles not to have to pay taxes?

No problem! On this page you can find out how to set it up.

1. Check Script Version

To use this function you need at least the following script version:

  • For ESX -> 1.2.5

  • For QBCore -> 1.2.6

2. Adjust database

First we need to add a new column in the database (based on your framework)

ALTER TABLE owned_vehicles
ADD COLUMN last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;

3. Set Config.ignoreVehiclesTaxPayment

The last thing you need to do is set the minimum number of days a car must be inactive before it is exempt from tax. In this example 14 Days.

Config.ignoreVehiclesTaxPayment = 14
Config.ignoreVehiclesTaxPayment = nil

This will deactivates it and does not check if vehicles is inactive!

Last updated

Was this helpful?