Fo4R Scripts
DiscordTebex
  • ⭐Welcome
  • 📰Fo4R Taxes
    • Introduction
    • Exports
  • 🚘FO4R EXCLUSIVES
    • Introduction
    • Installation
  • 🏪Fo4r Business
    • Introduction
    • Installation
  • 🦺Fo4r Kevlars
    • Introduction
    • Installation
  • 💠Fo4r Welcome
    • Introduction
    • Installation
Powered by GitBook
On this page
  • Server Exports - Tax System
  • Get Current Server Tax
  • Save new tax
  • Get price with tax
  • Get tax reminder
  • GOVERNMENT EXPORTS
  • ⚠ THIS DOSEN'T USE ADDON ACCOUNT ⚠
  • Get Government money
  • Add Government money
  • Remove government money
  1. Fo4R Taxes

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)
PreviousIntroductionNextIntroduction

Last updated 1 year ago

📰