diff --git a/[core]/esx_skin/client/modules/menu.lua b/[core]/esx_skin/client/modules/menu.lua index 786a1b3b..7af77cd6 100644 --- a/[core]/esx_skin/client/modules/menu.lua +++ b/[core]/esx_skin/client/modules/menu.lua @@ -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