• DarkRP Coding Help
    4 replies, posted
hey can any one help me with my darkrp code which has gone wrong i get this error: GAMEMODE:'PlayerSetModel' Failed: [gamemodes\darkrpsvn\gamemode\sv_gamemode_functions .lua:415] attempt to index local 'TEAM' (a nil value) and the code for around this is sv_gamemode_functions: [CODE]if type(TEAM.model) == "table" then local ChosenModel = ply.rpChosenModel or ply:GetInfo("rp_playermodel") ChosenModel = string.lower(ChosenModel) local found for _,Models in pairs(TEAM.model) do if ChosenModel == string.lower(Models) then EndModel = Models found = true break end end[/CODE]
-snip-
import isnt even part of garrysmod... or lua for that matter he is using darkrp and by default it shouldnt do this (from what i remember) which means you must have tried to add a new job (the usual problem) and its broken, and intern its broken everything else. read the trace stack you get sent in the console with lua errors, it will tell you who is trying to call what methods and find out what its doing.
so how can i fix it
Get a more latest revision of DarkRP
Sorry, you need to Log In to post a reply to this thread.