Files
esx_core-esx-framework/[esx_addons]/esx_billing
Benzo 5b2891c074 Merge pull request #630 from walls9919/patch-14
feat(esx_billing) - et translation
2022-11-13 22:23:04 +01:00
..
2022-11-06 16:19:51 +08:00
2022-11-03 23:54:47 +02:00
2022-10-09 01:00:40 +01:00
2022-09-16 05:15:11 +02:00
2022-01-15 02:19:31 +01:00
2022-01-15 02:19:31 +01:00

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-2022 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/.