being helped

the shared.lua


if ( CLIENT ) then
	SWEP.Author				= "zoro7789"
	SWEP.Purpose			= ""
	SWEP.Instructions		= ""
	SWEP.Category			= "IS-SWEPS"
	SWEP.PrintName			= "Zombie-view"
	SWEP.Slot				= 5
	SWEP.SlotPos			= 5	
end

if ( SERVER ) then
	AddCSLuaFile( "shared.lua" )
end

function SWEP:Deploy()
	self.Weapon:SendWeaponAnim(ACT_VM_DRAW)
      return true
end

function SWEP:Holster( wep )
	return true
end

cl_init.lua


include('shared.lua')

function ThermalVision()

	for k,v in pairs( ents.GetAll() ) do
	
		if string.sub( (v:GetModel() or "" ), -3) == "mdl" then -- only affect models
		
			-- Inefficient, but not TOO laggy I hope
			local r,g,b,a = v:GetColor()
			local entmat = v:GetMaterial()

			if v:IsNPC() or v:IsPlayer() then -- It's alive!
			
				if not (r == 255 and g == 255 and b == 255 and a == 255) then -- Has our color been changed?
					DefClrs[ v ] = Color( r, g, b, a )  -- Store it so we can change it back later
					v:SetColor( 255, 255, 255, 255 ) -- Set it back to what it should be now
				end
				
				if entmat ~= "xray/living" then -- Has our material been changed?
					DefMats[ v ] = entmat -- Store it so we can change it back later
					v:SetMaterial( "xray/living" ) -- The xray matierals are designed to show through walls
				end
			end
		end

	end
		
end

I’m feeling sorry for your loss.

So much info :open_mouth: /sarcasm