Linden 20b2319e97 refactor(client/main): Remove unused variable; optimisations
- Status.max was never defined anywhere (always nil) and was not referenced anywhere
- Add a toggle for status bars (Config.Display); setting to false reduces CPU usage
- onTick thread no longer retrieves StatusData twice; receives the minimal data then adds the other variables if Display is enabled
2021-06-04 13:14:56 +10:00
2018-08-10 00:56:03 -04:00
2017-09-02 12:15:18 +02:00
2020-04-14 16:53:17 +02:00
2018-08-10 00:56:03 -04:00
2020-01-19 17:27:54 +01:00

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
)


S
Description
Official Repo For core resources for esx-legacy
Readme 49 MiB
Languages
JavaScript 62.3%
Lua 34.8%
TypeScript 1.2%
HTML 0.8%
CSS 0.7%
Other 0.2%