Keeping a First Person Model static

Is this possible to do through lua? If so with what function? (Basically the model is on your screen but as you look up and down the hands stay looking forward.)

Like modifying the viewmodel’s angles with the CalcView hook?