Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter Event doesn't return first value #50

Open
spacevx opened this issue Dec 23, 2021 · 0 comments
Open

Enter Event doesn't return first value #50

spacevx opened this issue Dec 23, 2021 · 0 comments

Comments

@spacevx
Copy link

spacevx commented Dec 23, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant