So I was creating and editing some Jobs in the jobrelated.lua and when I started up my server it pretty much crapped it server and put these Errors into console:
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:540: attempt to index a nil value
1. initPlayer - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:540
2. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:585
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:603: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:603
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:675: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:675
CreateFragmentsFromFile: 'user_custom/87/87986c63.dat' doesn't exist.
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239
This is the Lua file I was editing at the time: [url]http://pastebin.com/9zYgaf7z[/url]
Please help me, I have no idea what I have done wrong.
For one, you shouldn't be editing this file as stated at the very top:
[quote]Default teams. Please do not edit this file. Please use the darkrpmod addon instead.[/quote]
here is the addon they recommend to download:
[url="DarkRP Mod Addon"]https://github.com/FPtje/darkrpmodification[/url]
[QUOTE=hghg1;49821551]For one, you shouldn't be editing this file as stated at the very top:
here is the addon they recommend to download:
[url="DarkRP Mod Addon"]https://github.com/FPtje/darkrpmodification[/url][/QUOTE]
Ok thank you for letting me know man. In the folder you have to sent to me, where do I edit the Jobs?
And also where do I put the folder into the addons?
read all signs and instructions, and reinstall your darkrp.
the darkrpmodification folder should be placed so that the directory looks like this
garrysmod/addons/darkrpmodification/lua
then find the customthings folder and in that, jobs.lua. Edit that file.
[URL="http://corefiles.darkrp.eu/"]again, if you have no idea what you're doing DO NOT edit the darkrp gamemode.[/URL]
Sorry, you need to Log In to post a reply to this thread.