mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 02:01:31 +00:00
refactor(esx_skin/client/modules/menu): remove redundant check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user