• Call Detective doesn't work
    2 replies, posted
Hi, By clicking "Call detective" at TTT the person gets this error: [CODE][ERROR] gamemodes/terrortown/gamemode/corpse.lua:151: attempt to call global 'GetDetectiveFilter' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/corpse.lua:151 2. unknown - lua/includes/modules/concommand.lua:54[/CODE] Anyone know what to do? Thanks in advance! Edit: This may help you: [CODE] local rag = Entity(eidx) if IsValid(rag) and rag:GetPos():Distance(ply:GetPos()) < 128 then if CORPSE.GetFound(rag, false) then -- show indicator to detectives net.Start("TTT_CorpseCall") net.WriteVector(rag:GetPos()) net.Send(GetDetectiveFilter(true)) LANG.Msg("body_call", {player = ply:Nick(), victim = CORPSE.GetPlayerNick(rag, "someone")}) else LANG.Msg(ply, "body_call_error") end end end concommand.Add("ttt_call_detective", CallDetective) [/CODE]
Have you tried restarting your server at all during the update? [t]https://i.gyazo.com/53391811b5fe926d5fcf2cacaba4e81b.png[/t]
Yes they are up to date.
Sorry, you need to Log In to post a reply to this thread.