Update README.md

This commit is contained in:
Samuel
2018-04-17 00:32:16 +02:00
committed by GitHub
parent b853ccb239
commit fd95968a10
+5 -6
View File
@@ -1,5 +1,4 @@
# fxserver-esx_billing
FXServer ESX Billing
# esx_billing
[INSTALLATION]
@@ -8,8 +7,8 @@ FXServer ESX Billing
```
git clone https://github.com/FXServer-ESX/fxserver-esx_billing esx_billing
```
3) Import esx_billing.sql in your database
4) Add this in your server.cfg :
3) Import `esx_billing.sql` in your database
4) Add this in your `server.cfg`:
```
start esx_billing
@@ -17,14 +16,14 @@ start esx_billing
[USAGE]
Press [F7] To show billing menu
Press `[F7]` To show billing menu
```
local amount = 100
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer == -1 or closestDistance > 3.0 then
ESX.ShowNotification('Aucun joueur à proximité')
ESX.ShowNotification('There\'s no players nearby!')
else
TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_taxi', 'Taxi', amount)
end