Simple Tax System for QBCore
- First add this to resources folder and ensure in
server.cfg
- Configure values in files present in
cad-tax/config/
as required.
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)
For qb logs
- Add below code in
qb-smallresources/server/logs.lua
['cadtax'] = 'PUT_WEBHOOK_HERE',
For ox logs
- Refer Overextended Docs