fix(esx_skin/client/modules/menu): clear old menu items before inserting new ones

This commit is contained in:
Ilias Rbayti
2024-11-20 19:36:49 +01:00
parent 7910d013ae
commit de7dcb75ba
+2 -1
View File
@@ -37,7 +37,8 @@ end
function Menu:InsertElements()
local playerPed = PlayerPedId()
self.elements = {}
for i = 1, #self.components, 1 do
local value = self.components[i].value
local componentId = self.components[i].componentId