/cad-tax

A Simple QBCore Tax System

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Simple Tax System for QBCore

Installation

  • First add this to resources folder and ensure in server.cfg
  • Configure values in files present in cad-tax/config/ as required.

Server Exports

exports["cad-tax"]:GetCurrentTax(src, type)    -- Get Current Tax percent for the type ["vehicle", "property", "house", "income"]
exports["cad-tax"]:IsTaxWaivedOff(citizenid) -- Check the player has tax waived off
exports["cad-tax"]:PlayersTax() -- To start manually
exports["cad-tax"]:VehiclesTax()  -- To start manually
exports["cad-tax"]:PropertiesTax()  -- To start manually
exports["cad-tax"]:CarsTax()  -- To start manually (deprecated)
exports["cad-tax"]:HousesTax()  -- To start manually (deprecated)

Setup Logs

For qb logs

  • Add below code in qb-smallresources/server/logs.lua
['cadtax'] = 'PUT_WEBHOOK_HERE',

For ox logs