Garry's Mod Wiki



Table structure used GM:CalcView and GM:CalcVehicleView hook.


origin [Vector]

The camera's position

angles [Angle]

The camera's angles

fov [number]

The camera's FOV

znear [number]

Distance to near clipping plane

zfar [number]

Distance to far clipping plane

drawviewer [boolean]

Set true to draw local players player model.

Default: false

ortho [table]

If set, enables orthographic mode. The table has following arguments:

Each describes where their border starts, (left+right) and (top+bottom) should equal 0 to center on the view position.

Default: nil