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