mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Fix GetPlayers() + add GetPercent()
This commit is contained in:
@@ -43,6 +43,10 @@ function CreateStatus(xPlayer, name, default, color, visible, tickCallback, clie
|
||||
end
|
||||
end
|
||||
|
||||
self.getPercent = function()
|
||||
return (self.val / Config.StatusMax) * 100
|
||||
end
|
||||
|
||||
self.updateClient = function()
|
||||
TriggerEvent('esx_status:updateClient', self.xPlayer.source)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user