Update README.md

This commit is contained in:
Jérémie N'gadi
2017-08-12 11:31:53 +02:00
committed by GitHub
parent df9e453bcc
commit 088364f78d
+34
View File
@@ -1,2 +1,36 @@
# fxserver-esx_status
FXServer ESX Status
[INSTALLATION]
1) CD in your resources/[esx] folder
2) Clone the repository
```
git clone https://github.com/FXServer-ESX/fxserver-esx_status esx_status
```
3) Add this in your server.cfg :
```
start esx_status
```
[HOWTO]
server.lua
```lua
local name = 'hunger'
local default = 1000000
local color = '#CFAD0F'
TriggerEvent('esx_status:registerStatus', name, default, color,
function(status) -- Visible calllback, if it return true the status will be visible
return true
end,
function(status) -- Tick callback, what to do at each tick
status.remove(200)
end,
{remove = 200} -- Client action (add / remove) so the client can be in sync with server
)
```