• Problem with my lua categories and lua errors.
    3 replies, posted
This is my lua error [ERROR] A runtime error has occurred in "your jobs" on line -1. The best help I can give you is this: The category of "Governor" ("Government") does not exist! Hints: - Make sure the category is created with DarkRP.createCategory. - The category name is case sensitive! - Categories must be created before DarkRP finished loading. The responsibility for the error above lies with (the authors of) one (or more) of these files: your jobs ------- End of Simplerr error ------- This is my category DarkRP.createCategory{ name = "Government", categorises = "jobs", startExpanded = true, color = Color(255, 255, 255, 254), canSee = function(ply) return true end, sortOrder = 2 } this is my government job TEAM_MAYOR = DarkRP.createJob("Governor", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[The Governor of Evocity creates laws to govern the city. If you are the mayor you may create and accept warrants. Type /wanted <name> to warrant a player. Type /jailpos to set the Jail Position. Type /lockdown initiate a lockdown of the city. Everyone must be inside during a lockdown. The cops patrol the area. /unlockdown to end a lockdown]], weapons = {}, command = "governor", max = 1, salary = GAMEMODE.Config.normalsalary * 1.89, admin = 0, vote = true, hasLicense = false, mayor = true, category = "Government", }) can anyone help me and tell me what I am doing wrong and fix that on line for me.
maybe cuz you spelled categorizes wrong? you spelled it as categorises
Falco is from the Netherlands. That's a british spelling. Are you creating the category at lua/darkrp_customthings/categories.lua?
[QUOTE=MelonShooter;52832939]Falco is from the Netherlands. That's a british spelling. Are you creating the category at lua/darkrp_customthings/categories.lua?[/QUOTE] it is in that folder yes
Sorry, you need to Log In to post a reply to this thread.