darkrpmodification jobs not being entered

Post Reply
Marsden107
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Oct 19, 2014 12:08 pm

darkrpmodification jobs not being entered

Post by Marsden107 »

I have coded in a number of jobs into jobs.lua and I know the job code is correct but when I jon the server the defaults are not disabled and my new jobs are not being added. This is the relevant lua error:

[ERROR] addons/darkrpmodification/lua/darkrp_config/disabled_defaults.lua:36: attempt to index global 'GAMEMODE' (a nil value)
1. unknown - addons/darkrpmodification/lua/darkrp_config/disabled_defaults.lua:36
2. include - [C]:-1
3. unknown - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:31
4. include - [C]:-1
5. unknown - gamemodes/darkrp/gamemode/cl_init.lua:33


Does anyone know what is wrong?
Zimer191
New to forums
New to forums
Posts: 4
Joined: Sun Oct 26, 2014 7:12 pm

Re: darkrpmodification jobs not being entered

Post by Zimer191 »

Hey Im just shooting a guess but i want you to try it. Copy ans save the jobs you made in a note pad or notepad ++. After saving them remove them from Jobs.lua. Post this.

TEAM_Thug = DarkRP.createJob("Thug", {
color = Color (255, 0, 0, 105) ,
model = "models/player/hostage/hostage_02.mdl",
description = [[Thug life.]],
weapons = {"m9k_usp"},
command = "thug",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
prior = false,
})

If this works and you get no errors just means theres a problem with one of your job scripts. Also is your f4 menu working?
Post Reply