Skip to content

FXServer ESX Billing with server side protection.

License

Notifications You must be signed in to change notification settings

ATG-Github/esx_billing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Security

Tired of hackers giving your players fake bills? Install this updated version with protected server events!

esx_billing

This resource for ESX adds possibility for different jobs to send bills to players, for example making police units able to give people fines. It comes with a menu for paying bills, to open the menu the default keybind is F7.

There is a developer server event available in order to register bills in the database, see default resources for examples.

Download & Installation

Using fvm

fvm install --save --folder=esx esx-org/esx_billing

Using Git

cd resources
git clone https://github.com/ESX-Org/esx_billing [esx]/esx_billing

Manually

Installation

  • Import esx_billing.sql in your database
  • Add this to your server.cfg:
start esx_billing

Usage

Press [F7] To show the billing menu

local amount                         = 100
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()

if closestPlayer == -1 or closestDistance > 3.0 then
	ESX.ShowNotification('There\'s no players nearby!')
else
	TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_taxi', 'Taxi', amount)
end

Legal

License

esx_billing - billing for ESX

Copyright (C) 2015-2020 Jérémie N'gadi

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.

About

FXServer ESX Billing with server side protection.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 98.0%
  • TSQL 2.0%