Pointshop third person addon powerup

How would one add this



if( CLIENT ) then
 
        function ThirdPersonUmsg( data )
                if( LocalPlayer().ThirdPerson == nil ) then
                        LocalPlayer().ThirdPerson = true;
                else
                        LocalPlayer().ThirdPerson = !LocalPlayer().ThirdPerson;
                end;   
        end;
        usermessage.Hook( "ThirdPerson", ThirdPersonUmsg );
       
        function ThirdPerson( ply, pos, ang, fov )
                if( LocalPlayer().ThirdPerson ) then
                        local view = {};
                        local dist = 100;
                        local trace = {};
                       
                        trace.start = pos;
                        trace.endpos = pos - ( ang:Forward() * dist );
                        trace.filter = LocalPlayer();
                        local trace = util.TraceLine( trace );
                        if( trace.HitPos:Distance( pos ) < dist - 10 ) then
                                dist = trace.HitPos:Distance( pos ) - 10;
                        end;
                        view.origin = pos - ( ang:Forward() * dist );
                        view.angles = ang;
                        view.fov = fov;
                       
                        return view;
                end;
        end;
        hook.Add( "CalcView", "ThirdPerson", ThirdPerson );
       
        function ThirdPersonSDLP()
                if( LocalPlayer().ThirdPerson ) then
                        return true;
                end;
        end;
        hook.Add( "ShouldDrawLocalPlayer", "ThirdPersonSDLP", ThirdPersonSDLP );
 
else
 
        function ToggleThirdPerson( ply )
                umsg.Start( "ThirdPerson", ply );
                umsg.End();
        end;
        hook.Add( "ShowTeam", "ToggleThirdPerson", ToggleThirdPerson );
       
end;


and integrate it into the pointshop?
Note: this isn’t my code, it’s blasphemy’s.
Thanks

Is this for a TTT server? If so, TTT overrides CalcView.

Nope, this is for Deathrun.