mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
revert(client/main): Go back to table.insert for GetStatusData
Not even sure why I did it as size+1 and not i; but doesn't seem to work with index anyway. Fixes nil value after dying
This commit is contained in:
+4
-4
@@ -13,19 +13,19 @@ function GetStatusData(minimal)
|
||||
|
||||
for i=1, #Status, 1 do
|
||||
if minimal then
|
||||
status[#status+1] = {
|
||||
table.insert(status, {
|
||||
name = Status[i].name,
|
||||
val = Status[i].val,
|
||||
percent = (Status[i].val / Config.StatusMax) * 100
|
||||
}
|
||||
})
|
||||
else
|
||||
status[#status+1] {
|
||||
table.insert(status, {
|
||||
name = Status[i].name,
|
||||
val = Status[i].val,
|
||||
color = Status[i].color,
|
||||
visible = Status[i].visible(Status[i]),
|
||||
percent = (Status[i].val / Config.StatusMax) * 100
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user