• Cannot figure out why this wont work for the life of me
    12 replies, posted
Errors: Errors Jobs.lua: Jobs Categories.lua: Categories Shipments.lua: Shipments The categories do exist The bracket does close Why no work
Can you please post the error reports coming up in your console, the errors you’ve posted are just Simplerr saying there are errors. The issue doesn’t seem to be with your syntax (a missing comma or bracket) but instead with a variable likely being undefined (like an invalid player).
Here is my entire console from the last two times ive tried to fix this
Here is one problem... For each job that you have you have a category that is not created. In the jobs.lua where it states under each job: category = "(Category Name)", Change (Category Name) for one of the Category you created in Category.lua
PoliceChief = DarkRP.createJob("Police Chief(VIP+)", {     color = Color(0, 255, 255, 255),     model = {"models/player/santosrp/male_09_santosrp.mdl"},     description = [[Protect the city and the citizens!!]],     weapons = {"stunstick", "arrest_stick", "unarrest_stick", "weaponchecker", "pocket", "keys", "door_ram", "m9k_m4a1", "m9k_usp", "weapon_medkit", “m9k_m24”},     command = "policechief",     max = 1,     salary = 150,     admin = 0,     vote = true,     hasLicense = true,     candemote = true,     category = "VIP+",     PlayerSpawn = function(ply)         ply:SetMaxHealth(125)         ply:SetHealth(100)         ply:SetArmor(150)     end }) Each category is set right below candemote = true ?
No, you only tell it what category its supposed to be part of. but you never created that category. which you need to do in the category.lua
I linked my categories are they wrong?
Maybe it's Garry's Mod itself trying to stop you from setting up a system to pay for jobs... Read through your shipments file. There's an error in there, and it's causing DarkRP to fail to load.
Could you point me in the right direction? I've tried looking through and I am obviously blind. Should I move the categories in the shipments to the categories.lua? I really have no idea.
DarkRP.createCategory{} This is the problem
Wow... Well rip me im assuming I have to remove all the "," because they are after every category. Thankyou so so much!
I just looked through your shipments, and it looks like starting with the Glock, you forgot commas after every allowed = {TEAM_GUNDEALER}
Thankyou that fixed the problem! But now a new issue has arisen. Story of my life I am going to try and figure this out before posting again thanks for the help!
Sorry, you need to Log In to post a reply to this thread.