• Setting up custom jobs: Lua Errors
    2 replies, posted
Hello, I have recently began setting up and coding my own DarkRP server however upon adding custom jobs and entering the server I am kicked out because of having too many lua errors. Recently I updated to DarkRP version 2.5 and after installing to [B]garrysmod/addons/darkrpmodification-master[/B] I began creating custom jobs in the folder named [B]darkrp_customthings[/B]. I followed the layout found on the DarkRP wiki; the page can be found here: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] I have created several jobs but when it came to playing on the server it would immediately kick me out therefore I recently added this to the server.cfg [B]sv_kickerrornum 0[/B] which stopped me from being kicked about lua errors. After looking in the 'f4' menu only the default jobs were there. I have looked around but have not found a solution so therefore I am posting here to seek help from the wonderful people of 'Facepunch'. Here is the lua errors I receive upon joining: [B]ConVarRef _FAdmin_immunity doesn't point to an existing ConVar ConVarRef FAdmin_logging doesn't point to an existing ConVar ConVarRef _FAdmin_MOTDPage doesn't point to an existing ConVar ConVarRef PlayersCanPickUpPlayers doesn't point to an existing ConVar ConVarRef AdminsCanPickUpPlayers doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_reloadprotection doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_iswhitelist doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_canblocked doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_worldprops doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_admincanblocked doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_adminworldprops doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_checkconstrained doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_toggle doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_shownocross doesn't point to an existing ConVar ConVarRef _FPP_PHYSGUN1_adminall doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_noshooting doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_iswhitelist doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_canblocked doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_worldprops doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_admincanblocked doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_adminworldprops doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_checkconstrained doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_toggle doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_shownocross doesn't point to an existing ConVar ConVarRef _FPP_GRAVGUN1_adminall doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_iswhitelist doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_canblocked doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_worldprops doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_admincanblocked doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_adminworldprops doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_checkconstrained doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_toggle doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_shownocross doesn't point to an existing ConVar ConVarRef _FPP_PLAYERUSE1_adminall doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_iswhitelist doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_canblocked doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_protectpropdamage doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_worldprops doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_admincanblocked doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_adminworldprops doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_checkconstrained doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_toggle doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_shownocross doesn't point to an existing ConVar ConVarRef _FPP_ENTITYDAMAGE1_adminall doesn't point to an existing ConVar ConVarRef _FPP_BLOCKMODELSETTINGS1_propsonly doesn't point to an existing ConVar ConVarRef _FPP_BLOCKMODELSETTINGS1_toggle doesn't point to an existing ConVar ConVarRef _FPP_BLOCKMODELSETTINGS1_iswhitelist doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_spawnadmincanblocked doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_duplicatorprotect doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_canblocked doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_spawnadmincanweapon doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_spawniswhitelist doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_worldprops doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_admincanblocked doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_iswhitelist doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_adminworldprops doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_duplicatenoweapons doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_checkconstrained doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_toggle doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_shownocross doesn't point to an existing ConVar ConVarRef _FPP_TOOLGUN1_adminall doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_duplicatorlimit doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_smallpropdenylimit doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_smallpropghostlimit doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_smallpropdowngradecount doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_antispawninprop doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_bigpropwait doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_toggle doesn't point to an existing ConVar ConVarRef _FPP_ANTISPAM1_bigpropsize doesn't point to an existing ConVar ConVarRef _FPP_GLOBALSETTINGS1_cleanupdisconnectedtime doesn't point to an existing ConVar ConVarRef _FPP_GLOBALSETTINGS1_antispeedhack doesn't point to an existing ConVar ConVarRef _FPP_GLOBALSETTINGS1_antie2minge doesn't point to an existing ConVar ConVarRef _FPP_GLOBALSETTINGS1_cleanupadmin doesn't point to an existing ConVar ConVarRef _FPP_GLOBALSETTINGS1_cleanupdisconnected doesn't point to an existing ConVar ConVarRef DarkRP_LockDown doesn't point to an existing ConVar ConVarRef gmod_physiterations doesn't point to an existing ConVar[/B] And here is a class I am using in the custom jobs section: [B]TEAM_THIEF = AddExtraTeam("Theif", { color = Color(159, 40, 93, 142, 237, 204), model = "models/player/t_arctic.mdl", description = [[Raid people's houses and steal their stuff, but remember, don't get caught!]], weapons = {"lockpick", "weapon_glock2"), command = "thief", max = 3, salary = 30, admin = 0, vote = false, hasLicense = false })[/B] Thank you or taking the time to read this. -LavaTeapot
[QUOTE=Handsome Matt;43401281]those aren't lua errors. [editline]3rd January 2014[/editline] your problem is a syntax error here though: weapons = {"lockpick", "weapon_glock2"), you can't start a table with { and then end it with ), replace it with }[/QUOTE] Fucking hell I'm dumb! XD Cheers!
Sorry, you need to Log In to post a reply to this thread.