Pivity

Help needed with GDrugs

Last read Never
#1

I own a DarkRP server and it is currently under development. Everything is going great except I am running into a huge roadblock. I am having a Error with GDrugs causing it to make it so you cannot spawn the Labs, Pots or Brewery. By default they are supposed to be in the F4 menu which they are also not in there. This is really the only issue I am having, and I want to try to get my server in beta as soon as possible because I have people waiting on it.

The Error that I am getting in the Web Console is this

[DarkRP] addons/gdrugs-1.27/lua/darkrp_modules/gdrugs/sh_darkrp.lua:5: attempt to call field 'createCategory' (a nil value)

  1. fn - addons/gdrugs-1.27/lua/darkrp_modules/gdrugs/sh_darkrp.lua:5
  2. Run - addons/ulib/lua/ulib/shared/hook.lua:109
  3. fn - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:141
  4. Run - addons/ulib/lua/ulib/shared/hook.lua:109
  5. unknown - gamemodes/darkrp/gamemode/cl_init.lua:47

I am not a developer or coder in any form. I can configure things, and I tried my hardest to figure out what the issue is but I can not seem to figure out what it is. I made a support ticket as well, but there are reviews saying bad support which I can completely understand because this script has been out forever and the creator is probably getting tired with answering support tickets. I also tried to research and figure out what the issue is, but again there is not really anything on YouTube or any forum posts about this script because I amuse it works pretty well usually.This is most likely a simple fix, but again reading most LUA is like reading a different type of language to me. So to the people that understand this confusing language if you could help me I would really appreciate it, because I have people waiting on the server going up and this is the last major thing I need to add for the economy to run correctly. Thanks again to anyone who helped out in any way.

#2
ByJaxat 10th of May 2017 22:07:36
I own a DarkRP server and it is currently under development. Everything is going great except I am running into a huge roadblock. I am having a Error with GDrugs causing it to make it so you cannot spawn the Labs, Pots or Brewery. By default they are supposed to be in the F4 menu which they are also not in there. This is really the only issue I am having, and I want to try to get my server in beta as soon as possible because I have people waiting on it.The Error that I am getting in the Web Console is this[DarkRP] addons/gdrugs-1.27/lua/darkrp_modules/gdrugs/sh_darkrp.lua:5: attempt to call field 'createCategory' (a nil value)fn - addons/gdrugs-1.27/lua/darkrp_modules/gdrugs/sh_darkrp.lua:5Run - addons/ulib/lua/ulib/shared/hook.lua:109fn - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:141Run - addons/ulib/lua/ulib/shared/hook.lua:109unknown - gamemodes/darkrp/gamemode/cl_init.lua:47I am not a developer or coder in any form. I can configure things, and I tried my hardest to figure out what the issue is but I can not seem to figure out what it is. I made a support ticket as well, but there are reviews saying bad support which I can completely understand because this script has been out forever and the creator is probably getting tired with answering support tickets. I also tried to research and figure out what the issue is, but again there is not really anything on YouTube or any forum posts about this script because I amuse it works pretty well usually.This is most likely a simple fix, but again reading most LUA is like reading a different type of language to me. So to the people that understand this confusing language if you could help me I would really appreciate it, because I have people waiting on the server going up and this is the last major thing I need to add for the economy to run correctly. Thanks again to anyone who helped out in any way.

It looks like the category is not being created which would cause it to not show in the F4 menu.

Agree x 1
#3
Bytypad ๐Ÿ‘‘at 11th of May 2017 01:22:50
It looks like the category is not being created which would cause it to not show in the F4 menu.

Do you know why it is not being created?

#4

Well the error speaks for itself usually. createCategory is a nil value, which means it doesn't exist/the function/meta function cannot be found and ran properly.

createCategory looks like a default darkrp function, so I would blame it on your DarkRP install.

Agree x 1
#5
ByCrap-Headat 11th of May 2017 13:18:45
Well the error speaks for itself usually. createCategory is a nil value, which means it doesn't exist/the function/meta function cannot be found and ran properly.createCategory looks like a default darkrp function, so I would blame it on your DarkRP install.

That's really weird, my host is GMC Hosting and I installed it from the online panel with the addon manager.I dont know of this matters, but I do have catagorys that I made in the F4 menu through the catagorys.lua file, and they work. Do you have any suggestions on fixing that?

#6
ByJaxat 11th of May 2017 14:18:23
That's really weird, my host is GMC Hosting and I installed it from the online panel with the addon manager.I dont know of this matters, but I do have catagorys that I made in the F4 menu through the catagorys.lua file, and they work. Do you have any suggestions on fixing that?

Well an error like this would usually happen if you have touched DarkRP core files. Have you?

Agree x 1
#7
ByCrap-Headat 11th of May 2017 15:49:38
Well an error like this would usually happen if you have touched DarkRP core files. Have you?

I have not.

Edited

ByCrap-Headat 11th of May 2017 15:49:38
Well an error like this would usually happen if you have touched DarkRP core files. Have you?

Actually would me deleting the basic jobs in gamemodes/darkrp/gamemode/config/jobsrelated.lua have an effect on anything?

#8

No. Reinstall darkrp (use official even or git download) is my best advice.

Agree x 1
#9
ByJaxat 11th of May 2017 19:57:30
I have not.EditedActually would me deleting the basic jobs in gamemodes/darkrp/gamemode/config/jobsrelated.lua have an effect on anything?

Don't touch anything in the DarkRP core files. Reinstall DarkRP and install the addon darkrpmodification. There is a setting within the darkrpmodification that disables all default DarkRP jobs.

Users viewing this thread
Nobody