• Issue with gundealer on server?
    3 replies, posted
Having issues creating the custom shipments for the gundealer. Gun dealer job: TEAM_GUN = DarkRP.createJob("Gun Dealer", {     color = Color(255, 140, 0, 255),     model = "models/player/monk.mdl",     description = [[A Gun Dealer is the only person who can sell guns to other people.         Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],     weapons = {},     command = "gundealer",     max = 2,     salary = GAMEMODE.Config.normalsalary,     admin = 0,     vote = false,     hasLicense = false,     category = "Citizens", }) And then here are the shipments: DarkRP.createShipment("ACR", {         model = "models/weapons/w_masada_acr.mdl",         entity = "m9k_acr",         price = 1000,         amount = 1,         seperate = false,         pricesep = 500,         noship = false,         allowed = {TEAM_GUN} }) DarkRP.createShipment("AK-47", {         model = "models/weapons/w_ak47_m9k.mdl",         entity = "m9k_ak47",         price = 10000,         amount = 10,         seperate = false,         pricesep = 500,         noship = false,         allowed = {TEAM_GUN} }) DarkRP.createShipment("AK-74", {         model = "models/weapons/w_tct_ak47.mdl",         entity = "m9k_ak74",         price = 10000,         amount = 10,         seperate = false,         pricesep = 500,         noship = false,         allowed = {TEAM_GUN} }) DarkRP.createShipment("AMD-65", {         model = "models/weapons/w_amd_65.mdl",         entity = "m9k_amd65",         price = 10000,         amount = 10,         seperate = false,         pricesep = 500,         noship = false,         allowed = {TEAM_GUN} })        DarkRP.createShipment("An-94", {         model = "models/weapons/w_rif_an_94.mdl",         entity = "m9k_an94",         price = 10000,         amount = 10,         seperate = false,         pricesep = 500,         noship = false,         allowed = {TEAM_GUN} }) DarkRP.createShipment("AS VAL", {         model = "models/weapons/w_dmg_vally.mdl",         entity = "m9k_val",         price = 10000,         amount = 10,         seperate = false,         pricesep = 500,         noship = false,         allowed = {TEAM_GUN} }) DarkRP.createShipment("F-2000", {         model = "models/weapons/w_fn_f2000.mdl",         entity = "m9k_f2000",         price = 10000,         amount = 10,         seperate = false,         pricesep = 500 ,         noship = false,         allowed = {TEAM_GUN} }) Issue is that whenever inputting the code it is not showing any of the guns when opening the shipments tab, also it gives this error [DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)   1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23    2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62
That error means you've broken something much worse. Look higher in your console and see if there are any other errors. and please for the love of fuck if you're going to make single weapons, don't make those singles into shipments
It is only happening when I add those shipments, but when I delete them everything works? I just looked there is nothing higher up in the console.
When you made those shipments you haven't give em any category idk if that could be the problem.
Sorry, you need to Log In to post a reply to this thread.