mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 01:38:52 +00:00
Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user