refactor(esx_skin/client/modules/menu): remove redundant check

This commit is contained in:
Ilias Rbayti
2024-11-20 19:47:50 +01:00
parent de7dcb75ba
commit d947633be8
+1 -4
View File
@@ -37,7 +37,7 @@ end
function Menu:InsertElements()
local playerPed = PlayerPedId()
self.elements = {}
for i = 1, #self.components, 1 do
local value = self.components[i].value
@@ -52,9 +52,6 @@ function Menu:InsertElements()
data.type = "slider"
data.max = self.maxValues[self.components[i].name]
if not self.elements then
self.elements = {}
end
self.elements[#self.elements + 1] = data
end
end