Thirdperson without RunConCommand

How would I make the player go in to ‘Thirdperson’

Without running the concommand for it, since it requires Sv_cheats 1 to be on?

**[Gamemode.CalcView

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.CalcView)**

Just look for a thirdperson addon on garrysmod.org

Heres a very simple third person script.

[lua]local convar = CreateConVar( “thirdperson_enabled”, “0”, { FCVAR_ARCHIVE, } )

hook.Add( “ShouldDrawLocalPlayer”, “ThirdPersonDrawPlayer”, function()
if convar:GetBool() and LocalPlayer():Alive() then
return true
end
end )

hook.Add( “CalcView”, “ThirdPersonView”, function( ply, origin, ang, fov )

if convar:GetBool() and ply:Alive() then

	local eyepos = ply:EyePos()

	local plyang = ply:GetAimVector()
	local tracedata = {}
	tracedata.start = eyepos
	tracedata.endpos = eyepos + ply:GetForward() * -65
	tracedata.filter = ply
	tracedata.mask = MASK_SOLID_BRUSHONLY
	local trace = util.TraceLine(tracedata)

	local view = {}
	view.origin = trace.HitPos + ply:GetForward() * 5
	view.angles = ply:EyeAngles()
	view.fov = fov
	
	return GAMEMODE:CalcView( ply, view.origin, view.angles, view.fov )
	
end

end )[/lua]