setCameraViewMode
Client-side
Server-side
Shared
Pair: getCameraViewMode
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function allows you to set the camera view modes. This indicates at what distance the camera will follow the player or vehicle.
Syntax
setCameraViewMode ( )Code Examples
client
This example sets the camera to bumper view when the local player enters any vehicle.
addEventHandler("onClientPlayerVehicleEnter", localPlayer, function() setCameraViewMode(0)end)