Locking a players view movement axis

Is there any way to make it so a player’s mouse can only move along the x axis?

View is based on angle, not on an xyz plane. You could make it so players can’t look up or down (if that’s what you’re talking about) by only allowing yaw, like so:

local view = {}
view.origin = vec
view.angles = ang - Angle(ang.p,0,ang.r)

Im going to make the view higher so its not going to be fps is it possible to do both

**EDIT:**I want it to be like third person where it draws the player model and view model where it should have been if i didnt change the view