Exports

An inovated tax system for Fivem Roleplay

Server Exports - Tax System

Get Current Server Tax

This would return the whole number like 14, 23, 26, 100

exports['Fo4rTaxes']:getCurrentTax()

Save new tax

Update tax from other scripts

exports['Fo4rTaxes']:saveNewTax(25)

Get price with tax

Insert a price and this would do the math necesary to return the price with the tax

exports['Fo4rTaxes']:getPriceWithTax(1000)

Get tax reminder

Returns the tax reminder for example price is 1000 and it would return 250

local _reminder = exports['Fo4rTaxes']:getTaxReminder(1000)
xPlayer.showNotification('You have paid $' .. _remainder .. ' of taxes')

GOVERNMENT EXPORTS

⚠ THIS DOSEN'T USE ADDON ACCOUNT ⚠

Get Government money

Returns current government society money

exports['Fo4rTaxes']:getGovernmentMoney()

Add Government money

Adds and updates government money

exports['Fo4rTaxes']:addGovernmentMoney(1000)

Remove government money

Removes and updates government money

exports['Fo4rTaxes']:removeGovernmentMoney(1000)

Last updated