mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 18:01:25 +00:00
Add status percent
This commit is contained in:
+4
-2
@@ -9,8 +9,9 @@ function GetStatusData(minimal)
|
||||
if minimal then
|
||||
|
||||
table.insert(status, {
|
||||
name = Status[i].name,
|
||||
val = Status[i].val,
|
||||
name = Status[i].name,
|
||||
val = Status[i].val,
|
||||
percent = (Status[i].val / Config.StatusMax) * 100,
|
||||
})
|
||||
|
||||
else
|
||||
@@ -21,6 +22,7 @@ function GetStatusData(minimal)
|
||||
color = Status[i].color,
|
||||
visible = Status[i].visible(Status[i]),
|
||||
max = Status[i].max,
|
||||
percent = (Status[i].val / Config.StatusMax) * 100,
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user