cl_lock_camera<0 / 1>

When set to 1 (with cheats enabled), this command locks the camera in place so the viewmodel can move while the camera remains stationary; the default is 0 (disabled).

CategorySpectator
GameCS2 + CSGO
ScopeGlobal
CheatsRequired

Arguments

These are the parameters cl_lock_camera uses when it is ran. Required arguments must be provided.

<0 / 1>

BoolRequired

Use 0 to keep the camera unlocked (default) and 1 to lock the camera at its current position.

Default: 0

Command Builder

This interactive command builder generates a valid cl_lock_camera command for in-game use. Fill all required fields.

All required arguments filled!

Output Command

cl_lock_camera 0

Command Information

Learn more about how to use the cl_lock_camera effectively.

Argument Data Types

Arguments can be of type String, Number, Bool, or Enum. Provide the correct type for the command to execute correctly.

Required Arguments

Arguments marked as Required must be provided for the command to work. Optional arguments can be left blank.

Command Scope

Commands can be Client-sided or Server-sided. Client-sided commands affect only your game client, while server-sided commands affect the entire server.

Cheats Required

Some commands require sv_cheats to be enabled. If a command has this requirement, it will not run on servers where cheats are disabled.