• TTT SWEP help about client/serverside
    1 replies, posted
Hello, I'm currently creating a TTT Swep, but i don't understand why i can't use LocalPlayer() I tried to add a if CLIENT then, but this litteraly glitch the weapon, the game can't find it in files hook.Add( "PreDrawHalos", "AddHalos", function() for k, v in pairs( ents.FindByClass( "prop_*" ) ) do    if (LocalPlayer:GetPos():Distance( v:GetPos() ) < 100 ) then           halo.Add({v}, Color( 255, 10, 0 ), 0, 0, 2, true, true )            end      end end)
Sorry, you need to Log In to post a reply to this thread.