DarkRP Need Help With Custom Gun Dealer Job/s

I need some help with making a custom job in Jobs.lua . I want to make a Black Market Dealer for my DarkRP server, but I cannot figure out how to allow them to access shipments (F4 menu) as well as have their own exclusive shipments.

I’ve tried making the Black Market Dealer (BMD for short) in TEAM_GUN, that way they have access to shipments in the f4 menu. But then, in shipments if I set the shipments “allowed = TEAM_GUN” (allowed might not be it im running of memory), it will give normal gun dealers permission to the shipments as they are in TEAM_GUN.

I thought of the solution, add another TEAM_GUN but rename it like TEAM_BMD but I don’t know how to make a team, and I don’t know how to make a team which would have perms for shipments in F4 menu! Please help!

Add TEAM_BMD an allowed team in your shipment code

But BMD job is TEAM_GUN so that wouldn’t work…
Or
I believe I tried that (BMD job was TEAM_BMD & Allowed TEAM_BMD in shipments), but it would allow BMD’s to access f4 shipments

You should always have a seperate team for all classes. What shipments do you want them to have access to, then?

I want them to have access to some m9k special weapons. I made BMD in TEAM_GUN so that they would have access to f4 shipments >.<

Remove BMD from TEAM_GUN and write their allowed shipments as:
allowed = TEAM_BMD

It’s easier, more organized, and isn’t a fuckfest.

When I do that, it won’t let BMD’s into shipments

Imgur

Change it to { TEAM_BMD }

-----Job Lua-----

TEAM_BMD = AddExtraTeam(“Black Market Dealer”, {
color = Color(148, 148, 73, 255),
model = “models/player/leet.mdl”,
description = [[Black Market Dealers sell dangerous weapons and items.
If the Black Market Dealer is caught selling illegal
contraband he is punishable by law.
Black Market Dealers sell Smoke, and Flash Grenades.
All grenade shipments come with 5 grenades each.
Also able to sell Keypad Crackers, Lockpicks
and Unarrest Sticks.]],
weapons = {},
command = “blackmarketdealer”,
max = 2,
salary = 90,
admin = 0,
vote = false,
hasLicense = false,
})

-----Shipment Lua-----

DarkRP.createShipment(“Sticky Grenade Shipment [x5]”, {
model = “models/weapons/w_sticky_grenade_thrown.mdl”,
entity = “m9k_sticky_grenade”,
price = 8500,
amount = 5,
separate = false,
pricesep = nil,
noship = false,
allowed = { TEAM_BMD },
category = “Specials”,
})

I did what you suggested ^^ Still didn’t work.

Does AddExtraTeam still work? I thought it was DarkRP.createJob

I’ll check if changing it will fix

[editline]31st July 2015[/editline]

Nope didn’t fix

And you don’t get any errors at all?

Also, afaik, having a comma on the last line of your job screws it up, unless that was fixed a while ago

Nope, no errors, just doesn’t work. And my jobs work fine with a comma on the last line :S

i think you can add “gundealer = true” to your custom gun dealer job.

TEAM_BMD = AddExtraTeam(“Black Market Dealer”, {
color = Color(148, 148, 73, 255),
model = “models/player/leet.mdl”,
description = [[Black Market Dealers sell dangerous weapons and items.
If the Black Market Dealer is caught selling illegal
contraband he is punishable by law.
Black Market Dealers sell Smoke, and Flash Grenades.
All grenade shipments come with 5 grenades each.
Also able to sell Keypad Crackers, Lockpicks
and Unarrest Sticks.]],
weapons = {},
command = “blackmarketdealer”,
max = 2,
salary = 90,
admin = 0,
vote = false,
hasLicense = false,
gundealer = true
})