DarkRP You do not have the right job to /buyshipment

Hello i added a new job to my darkrp server Heavy Arms Dealer and whenever he buys a shipment it says You do not have the right job to /buyshipment
This is the jobs code and the shipments code


TEAM_HEAVYGUN = DarkRP.createJob("Heavy Arms Dealer", {
	color = Color(255, 140, 0, 255),
	model = "models/player/monk.mdl",
	description = [[A Heavy Arms Dealer sells Heavy weaponry.
		Same rules apply as the Gun Dealer!]],
	weapons = {},
	command = "heavyarms",
	max = 2,
	salary = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = true,
	hasLicense = true
})


DarkRP.createShipment("Ak47", {
    model = "models/weapons/w_rif_ak47.mdl",
    entity = "weapon_ak47custom",
    price = 4000,
    amount = 10,
    separate = false,
    pricesep = nil,
    noship = false,
    allowed = {TEAM_HEAVYGUN}
})


Any help would be appreciated thanks!

The following doesn’t usually work for me:


DarkRP.createShipment("Ak47", {
    model = "models/weapons/w_rif_ak47.mdl",
    entity = "weapon_ak47custom",
    price = 4000,
    amount = 10,
    separate = false,
    pricesep = nil,
    noship = false,
    allowed = {TEAM_HEAVYGUN}
})

If you don’t use darkrpmodification addon, you should, get it here, then put it in your server’s addons folder.
The format I use, assuming you’re using shipments.lua under darkrp_customthings in darkrpmodification:


AddCustomShipment("Ak47", "models/weapons/w_rif_ak47.mdl", "weapon_ak47custom", 4000, 10, false, 123, false, {TEAM_HEAVYGUN})

Hope I helped :smile:

I added the Ak47 shipment that you wrote but still says you don’t have the right job to /buyshipment its odd cause i have a Black Market Dealer who can buy shipments

You may have a conflicting Job name. Could you look through your jobs file and see what you come up with?

Check the name of the job and the become job command.