Error when trying to buy shipment?

Hello, as a gun dealer I cannot buy shipments, it gives me this error message: “you do not have the right job to use /buyshipment”

Here is my shipments.lua [I used the VIPOnly as a test for glock shipments]

[lua]AddCustomShipment(“Glock”, {
model = “models/weapons/w_pist_glock18.mdl”,
entity = “weapon_lordi_wep_glock”,
price = 1700,
amount = 10,
seperate = true,
pricesep = 350,
noship = false,
VIPOnly = true,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“P228”, {
model = “models/weapons/w_pist_p228.mdl”,
entity = “weapon_lordi_wep_p228”,
price = 2000,
amount = 10,
seperate = true,
pricesep = 300,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“Deagle”, {
model = “models/weapons/w_pist_deagle.mdl”,
entity = “weapon_lordi_wep_deagle”,
price = 2200,
amount = 10,
seperate = true,
pricesep = 500,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“USP”, {
model = “models/weapons/w_pist_usp.mdl”,
entity = “weapon_lordi_wep_usp”,
price = 2000,
amount = 10,
seperate = true,
pricesep = 350,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“Fiveseven”, {
model = “models/weapons/w_pist_fiveseven.mdl”,
entity = “weapon_lordi_wep_57”,
price = 2100,
amount = 10,
seperate = true,
pricesep = 500,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“Knife”, {
model = “models/weapons/w_knife_t.mdl”,
entity = “weapon_lordi_wep_knife”,
price = 1500,
amount = 10,
seperate = true,
pricesep = 300,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“MAC 10”, {
model = “models/weapons/w_smg_mac10.mdl”,
entity = “weapon_lordi_wep_mac10”,
price = 2500,
amount = 10,
seperate = false,
pricesep = 1000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“TMP”, {
model = “models/weapons/w_smg_tmp.mdl”,
entity = “weapon_lordi_wep_tmp”,
price = 3333,
amount = 10,
seperate = false,
pricesep = 1100,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“MP5”, {
model = “models/weapons/w_smg_mp5.mdl”,
entity = “weapon_lordi_wep_mp5”,
price = 2400,
amount = 10,
seperate = false,
pricesep = 1100,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“MP5”, {
model = “models/weapons/w_smg_mp5.mdl”,
entity = “weapon_lordi_wep_mp5”,
price = 2300,
amount = 10,
seperate = false,
pricesep = 1100,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“UMP”, {
model = “models/weapons/w_smg_ump45.mdl”,
entity = “weapon_lordi_wep_ump”,
price = 3000,
amount = 10,
seperate = false,
pricesep = 1250,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“Pump Shotgun”, {
model = “models/weapons/w_shot_m3super90.mdl”,
entity = “weapon_lordi_wep_m3”,
price = 3600,
amount = 10,
seperate = false,
pricesep = 1400,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“FAMAS”, {
model = “models/weapons/w_rif_famas.mdl”,
entity = “weapon_lordi_wep_famas”,
price = 3800,
amount = 10,
seperate = false,
pricesep = 1600,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“Scout”, {
model = “models/weapons/w_snip_scout.mdl”,
entity = “weapon_lordi_wep_scout”,
price = 4000,
amount = 10,
seperate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“P90”, {
model = “models/weapons/w_smg_p90.mdl”,
entity = “weapon_lordi_wep_p90”,
price = 4500,
amount = 10,
seperate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“SG552”, {
model = “models/weapons/w_rif_sg552.mdl”,
entity = “weapon_lordi_wep_sg552”,
price = 5500,
amount = 10,
seperate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“AUG”, {
model = “models/weapons/w_rif_aug.mdl”,
entity = “weapon_lordi_wep_aug”,
price = 5500,
amount = 10,
seperate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“Auto Shotgun”, {
model = “models/weapons/w_shot_xm1014.mdl”,
entity = “weapon_lordi_wep_xm1014”,
price = 3500,
amount = 10,
seperate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“AK 47”, {
model = “models/weapons/w_rif_ak47.mdl”,
entity = “weapon_lordi_wep_ak47”,
price = 4000,
amount = 10,
seperate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“M4A1”, {
model = “models/weapons/w_rif_m4a1.mdl”,
entity = “weapon_lordi_wep_m4a1”,
price = 4000,
amount = 10,
seperate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“Galil”, {
model = “models/weapons/w_rif_galil.mdl”,
entity = “weapon_lordi_wep_galil”,
price = 5500,
amount = 10,
seperate = false,
pricesep = 100,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“SG 550”, {
model = “models/weapons/w_snip_sg550.mdl”,
entity = “weapon_lordi_wep_sg550”,
price = 6500,
amount = 10,
seperate = false,
pricesep = 100,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“AWP”, {
model = “models/weapons/w_snip_awp.mdl”,
entity = “weapon_lordi_wep_awp”,
price = 9000,
amount = 10,
seperate = false,
pricesep = 100,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})

AddCustomShipment(“M249”, {
model = “models/weapons/w_mach_m249para.mdl”,
entity = “weapon_lordi_wep_m249”,
price = 13000,
amount = 10,
seperate = false,
pricesep = 100,
noship = false,
allowed = {TEAM_PREMIUMGUNDEALER}
})[/lua]

What version of DarkRP are you running, have you edited the core files, and what are your addons?

I’m running the latest version, have never edited the core files. The only addon that even remotely resembles this problem is my f4 menu.

Well what is the TEAM_PREMIUMGUNDEALER?
May we see that job?

[lua]
TEAM_PREMIUMGUNDEALER = AddExtraTeam(“Premium Gun Dealer”, {
color = Color(208, 247, 82, 255),
VIPOnly = true,
model = “models/player/monk.mdl”,
description = [[You’re the best of the best, only you
can sell the most dangerous weapons to people, be careful.
You are NOT aloud to self supply nor raid people.]],
weapons = {“weapon_fists”, “weapon_lordi_wep_m4a1”, “weapon_lordi_wep_deagle”},
command = “premiumgundealer”,
max = 3,
salary = 777,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
premiumgundealer = true,
mayorCanSetSalary = false,
})
[/lua]

At
[lua]
mayorCanSetSalary = false,
})
[/lua]

There probably shouldnt be a comma there if I am not mistaken

@blue
It doesn’t recognize the last comma. Whether it’s there or not doesn’t matter to Lua.

What exactly is



premiumgundealer = true
VIPOnly = true


there for?

If you could also list ALL your addons for us, please.

VIPOnly is used in most F4 menus to add it to a seperate tab away from the normal jobs! Magic!
Im curious as to know what premiumgundealer is there for also…

VIPOnly is used in most f4 menu’s as bluebull stated.

premiumgundealer = true doesn’t really matter, I put something similar to all of my jobs and they all function perfectly, so I doubt that’s the issue. I even tried removing it, and it still doesn’t effect anything.

Here is a list of my addons:

workshop:

Colourmater Tool
Drugs Mod
Stacker Stool
SmartSnap
Climb SWEP 2
rp_downtown_v4c
Blink SWEP
RT camera
Advanced Duplicaior
Precision Tool [Official]
Fading Doors
Hit Numbers
Wiremod
More Materials!
Keypad tool and cracker with wire support
Haus the Plage Doktor [player model]
HL2/CSS weapons - lordiander’s Base
Darkrp pro lock pick swep

files:

Darkrpmodification
Custom f4 menu
URS
Anti propkill

still havent figured this out

Then remove “premiumgundealer = true”. It doesn’t look like it does much