DrawBeam function

Hey guys.
I am trying to draw a beam for a second, and first of all trying to draw the beam it self, but it doesn’t work.
This is my code:


	local startingpoint = LocalPlayer():GetBonePosition(LocalPlayer():LookupBone("ValveBiped.Bip01_Head1"))
		local LASER = Material('cable/redlaser')
        render.SetMaterial( LASER )
		render.DrawBeam(startingpoint, LocalPlayer():GetEyeTrace().HitPos, 2, 0, 12.5, Color(255, 0, 0, 255))

Note: I am trying to shoot the beam for a swep.

Make sure you’re calling it inside of a render function. Here: https://dl.dropboxusercontent.com/u/26074909/tutoring/render_lasers_rendering_cubes.lua.html