Weapon buy

When I go to the server I can buy weapons for any profession , and how to do so that I could buy only for certain .


AddCustomShipment("Desert Eagle", {
        model = "models/weapons/w_tcom_deagle.mdl",
        entity = "m9k_deagle",
        price = 10,
        amount = 10,
        separate = true,
        pricesep = 1,
        noship = false,
        allowed = {TEAM_GUN}
})

Help me please

Search for GM.Config.restrictbuypistol and GM.Config.hideTeamUnbuyable in config and set it both to true.