CameraClient

setCamFov

SET_CAM_FOV0xB13C14F66A00D047

The GTA V native SET_CAM_FOV of the CAM namespace, as LS:MP client scripts call it: the global function setCamFov, in JavaScript and in Lua.

SignatureJavaScript
setCamFov(cam: Cam, fieldOfView: number): void
SignatureLua
setCamFov(cam: Cam, fieldOfView: number)

Usage

JavaScript
setCamFov(cam, fieldOfView);
Lua
setCamFov(cam, fieldOfView)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
fieldOfViewfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets the field of view of the cam.


Min: 1.0f
Max: 130.0f

Reference

Namespace
Camera CAM
In the game
void SET_CAM_FOV(Cam cam, float fieldOfView)
Hash
0xB13C14F66A00D047

Open in the interactive natives reference