Commit Graph

9 Commits

Author SHA1 Message Date
Linden 0087ace534 refactor(client/main): Use pairs loop 2021-06-13 09:04:56 +10:00
Linden 5aa50f5ac7 improvement(client/main): Minor optimisation - use the esx_status:onTick event
The event was added to esx_status late 2018 but never utilised anywhere; using it here drops ms to 0.0 at all times.

#### Note: This event can and should also be used in various HUDs to improve performance.  
Many of them use 500ms threaded loops, despite status only updating every 1s by default.  
They also use individual event callbacks to retrieve each status value, while each value is already being sent in the event.
2021-06-09 12:37:33 +10:00
akbaig dea210983f Ability to make the display hud enable or disable in config file (#37)
* Update config.lua

Adds the option to make the bars visible/invisible in case you're using some other resource like trew_hud_ui

* Update main.lua

Adds the option to make the bars visible/invisible in case you're using some other resource like trew_hud_ui
2020-07-03 17:38:38 +01:00
ElPumpo 94031d40a0 Latest ESX code 2020-04-14 16:48:30 +02:00
ElPumpo 49dc255546 Minor improvements 2018-09-16 10:59:33 +02:00
ElPumpo e4056aa7d7 Major cleanup, /heal, fixed #12, sv locale 2018-07-01 11:47:57 +02:00
renaiku ac3975105a added isEating callback
fixed animation issues
you can now use a personnalized prop by calling onEat or onDrink.
2017-09-17 19:58:14 +02:00
Jérémie N'gadi c0c5fbba00 Use new esx_status 2017-09-02 12:15:59 +02:00
Jérémie N'gadi b0481a87f9 Add files 2017-08-12 11:46:03 +02:00