From d370c6c0f7d9249065bcdb9b2c7b80c3fe6470a6 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 22 Aug 2017 00:07:39 -0400 Subject: Hotfix for player is not valid error --- lua/autorun/sv_npc.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/autorun/sv_npc.lua b/lua/autorun/sv_npc.lua index 8f346bb..d2d81da 100644 --- a/lua/autorun/sv_npc.lua +++ b/lua/autorun/sv_npc.lua @@ -1,13 +1,14 @@ -if CLIENT then return end -local f = nrequire("concommands.lua") +do return end +--local f = nrequire("concommands.lua") local npcs = {} --Master table of npcs local autocompletef +local n = {} function RegisterNPC(npc) assert(npc ~= nil, "Attempted to register a nil npc") assert(npc.Name ~= nil, "Attempted to register an npc without a name") npcs[npc.Name] = npc - autocompletef = f.AutocompleteFunction(npcs) + --autocompletef = f.AutocompleteFunction(npcs) end function CreateNPCByName(npcname, pos) -- cgit v1.2.3-70-g09d2