/bixbi_billing

FiveM Billing Script - for RP servers

Primary LanguageLua


Information

Bixbi_Billing is a simple billing script. Intended to be used on FiveM Roleplaying Servers.

Originally created to combat hackers/script-kiddies that found it fun to send random, usually racist, bills to everyone on the server. Using this script you can limit bills being sent to a specific job, you can further limit the amount amount that a bill can be. Moreover, you have the ability to open a "search for bill" menu, where a job (such as the police) can search a players bills using their First and Last RP name.

Optionally (but recommended) you can enable the use of target scripts (such as qtarget).


Requirements


Exports

Client

Open Menu

TriggerEvent('bixbi_billing:OpenMenu') -- sent from client
TriggerClientEvent('bixbi_billing:OpenMenu', source) -- sent from server

Open Lookup Menu

TriggerEvent('bixbi_billing:OpenLookupMenu') -- sent from client
TriggerClientEvent('bixbi_billing:OpenLookupMenu', source) -- sent from server

Server

Send Bill

local data = {
  targetId = 1, -- int
  reason = "string", -- string
  amount = 100, -- int
  playerId = nil -- int, only required when event is sent from *server*. If sent from client this is automatic.
}

TriggerServerEvent('bixbi_billing:SendBill', data) -- sent from client
TriggerEvent('bixbi_billing:SendBill', data) -- sent from server

Feel free to modify to your liking. Please keep my name (Leah#0001) in the credits of the fxmanifest. If your modification is a bug-fix I ask that you make a pull request, this is a free script; please contribute when you can.