Esx_status how to register status

Hello,
so i don’t understand where i do need put this code:

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
)

1 Like

Like in client or server folder?

You would need to put it in the client folder I believe since it’s a client script, but if i’m wrong put it into the server folder instead.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.