0.0.1
This commit is contained in:
37
resources/[esx_addons]/esx_status/README.md
Normal file
37
resources/[esx_addons]/esx_status/README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
<h1 align='center'>[ESX] Status</a></h1><p align='center'><b><a href='https://discord.esx-framework.org/'>Discord</a> - <a href='https://documentation.esx-framework.org/legacy/installation'>Documentation</a></b></h5>
|
||||
ESX Status
|
||||
[INSTALLATION]
|
||||
|
||||
1) CD in your resources/[esx] folder
|
||||
2) Clone the repository
|
||||
```
|
||||
git clone https://github.com/esx-framework/esx_status esx_status
|
||||
```
|
||||
3) Import esx_status.sql in your database
|
||||
4) Add this in your server.cfg :
|
||||
|
||||
```
|
||||
start esx_status
|
||||
```
|
||||
|
||||
[HOWTO]
|
||||
|
||||
server.lua
|
||||
```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
|
||||
)
|
||||
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user