FXServer ESX Status [INSTALLATION]
- CD in your resources/[esx] folder
- Clone the repository
git clone https://github.com/FXServer-ESX/fxserver-esx_status esx_status
- Import esx_status.sql in your database
- Add this in your server.cfg :
start esx_status
[HOWTO]
server.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
)