Hey when i use the event enter, it doesn't return the first value (https://streamable.com/mp4k89)
Here is my code :
for categories, vehicles in pairs(SpaceVehShop.Categories) do
local CategMenu = MenuV:CreateMenu(categories, 'Catégorie : ' .. categories, 'topleft', 255, 0, 0, 'size-125', 'default', 'menuv', 'space_vehshop_categorie_' .. categories, 'native')
local categBtn = VehShopMenu:AddButton({icon = '', label = categories, description = "Catégorie : " .. categories, value = CategMenu})
for k,v in pairs(vehicles) do
local vehiclesBtn = CategMenu:AddButton({icon = '', label = k, description = k, value = v.model, enter = function(value)
print(value.Value)
end})
end
end
Hey when i use the event enter, it doesn't return the first value (https://streamable.com/mp4k89)
Here is my code :