"This shipment is unavailable" on custom F4 menu

Im making a custom F4 menu for my DarkRP 2.5 server.

I have this custom shipment here (which is actually a singular weapon and not a shipment):



DarkRP.createShipment("Desert Eagle", {
        model = "models/weapons/w_pist_deagle.mdl",
        entity = "weapon_real_cs_desert_eagle",
        price = 415,
        amount = 5,
        seperate = true,
        pricesep = 215,
        noship = true,
        allowed = {TEAM_GUN}
})


It shows up in my shipments menu fine, but when I go to buy it, it doesnt work at all. It just gives me a error saying: “Shipment unavailable”



for k, v in pairs(CustomShipments) do
	self:AddTile(v.model, v.entity, v.price, v.name, v.allowed)
end


Heres self:AddTile():



function PANEL:AddTile(model, ent, price, name, allowed)

local shipmentModel = vgui.Create("SpawnIcon", shipment)
shipmentModel:SetSize(shipment:GetWide(), shipment:GetTall())
shipmentModel:SetModel(model)
shipmentModel.DoClick = function()
	self.bottomInfo:SetVisible(true)
	self:updateInfo(name, model, price)
end

end


andddd self:updateInfo():



function PANEL:updateInfo(name, model, price)
	self.shipmentTitle:SetText(name)
	self.modelPreview:SetModel(model)
	self.buyEnt:SetText("Purchase")
	self.shipmentPrice:SetText("$"..price)
	self.buyEnt.DoClick = fn.Partial(RunConsoleCommand, "DarkRP", "buyshipment", name)
end


All shipments work fine so long as they havent got noship set to true.

Thats’s pretty messy dude

I totally forgot that singular shipments only work with the /buy command! Works now, I just cghanged the console command to buy.