Menus

local QBCore = exports[Config.Utility.CoreName]:GetCoreObject()

RegisterNetEvent('m-HouseRobbery:Client:MenuSelling', function()
    exports['qb-menu']:openMenu({
        { header = Language.Selling, txt = "", isMenuHeader = true },
        { header = "<img src=nui://"..Config.InvLink..QBCore.Shared.Items["television"].image.." width=30px> "..Language.SellAll, params = { isServer = true, event = "m-HouseRobbery:Server:VenderCenas", args = 'television' } },
        { header = "<img src=nui://"..Config.InvLink..QBCore.Shared.Items["microwave"].image.." width=30px> "..Language.SellAll, params = { isServer = true, event = "m-HouseRobbery:Server:VenderCenas", args = 'microwave' } },
        { header = "<img src=nui://"..Config.InvLink..QBCore.Shared.Items["painting"].image.." width=30px> "..Language.SellAll, params = { isServer = true, event = "m-HouseRobbery:Server:VenderCenas", args = 'painting' } },
        { header = "<img src=nui://"..Config.InvLink..QBCore.Shared.Items["safe"].image.." width=30px>"..Language.SellAll, params = { isServer = true, event = "m-HouseRobbery:Server:VenderCenas", args = 'safe' } }, 
        { header = "", txt = Language.Close, params = { event = "qb-menu:closeMenu" } },
    })
end)

Last updated