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
2020-12-20 06:37:00 +03:00
2020-02-17 21:53:39 +01:00
2018-08-10 00:50:42 -04:00
2020-11-28 22:25:52 +00:00
2020-12-01 10:54:20 -03:00
2020-12-20 06:35:59 +03:00
2018-08-10 00:50:42 -04:00
2020-02-17 21:53:39 +01:00

esx_basicneeds

This script implements hunger and thirst status, they can be increased when eating bread or drinking water.

Requirements

Download & Installation

Using fvm

fvm install --save --folder=esx esx-org/esx_basicneeds

Using Git

cd resources
git clone https://github.com/ESX-Org/esx_basicneeds [esx]/esx_basicneeds

Manually

Installation

  • Import esx_basicneeds.sql in your database
  • Add this in your server.cfg :
start esx_basicneeds

Legal

License

esx_basicneeds - thirst and hunger system

Copyright (C) 2015-2020 Jérémie N'gadi

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.

You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.

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%