mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 01:38:52 +00:00
acb264c0270d69f50fdb5c3648dad52e5fe2ad0c
Not even sure why I did it as size+1 and not i; but doesn't seem to work with index anyway. Fixes nil value after dying
esx_status
ESX Status [INSTALLATION]
- CD in your resources/[esx] folder
- Clone the repository
git clone https://github.com/ESX-Org/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
)
Description
Languages
JavaScript
62.3%
Lua
34.8%
TypeScript
1.2%
HTML
0.8%
CSS
0.7%
Other
0.2%