Skip to content

pizzA0/esx_status

Repository files navigation

esx_status

ESX Status [INSTALLATION]

  1. CD in your resources/[esx] folder
  2. Clone the repository
git clone https://github.com/ESX-Org/esx_status esx_status
  1. Import esx_status.sql in your database
  2. 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
)

About

No description, website, or topics provided.

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages