ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setCameraViewMode

Function

setCameraViewMode

Changes the in-vehicle camera view, like the view change key in the game: 0 = bumper (view from inside), 1 = close, 2 = medium, 3 = far. The player can still change the view with the key afterwards.

Syntax

bool setCameraViewMode(int viewMode)

Arguments

viewModeint
The view 0-3.Optional in MTA:SA: int vehicleCameraMode = nil

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.
  • These MTA:SA arguments are not here: int pedCameraMode = nil

In MTA:SA

setCameraViewMode(int vehicleCameraMode = nil, int pedCameraMode = nil)

Returns

true on success, false for a value outside 0-3.

Example

setCameraViewMode(2)

See also