CameraClientNot in this build

activateCamWithInterpAndFovCurve

_ACTIVATE_CAM_WITH_INTERP_AND_FOV_CURVE0x34CFC4C2A38E83E3

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

SignatureJavaScript
activateCamWithInterpAndFovCurve(
  camTo: Cam,
  camFrom: Cam,
  duration: number,
  easeLocation: number,
  easeRotation: number,
  easeFov: number
): void
SignatureLua
activateCamWithInterpAndFovCurve(
  camTo: Cam,
  camFrom: Cam,
  duration: integer,
  easeLocation: integer,
  easeRotation: integer,
  easeFov: integer
)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
activateCamWithInterpAndFovCurve(camTo, camFrom, duration, easeLocation, easeRotation, easeFov);
Lua
activateCamWithInterpAndFovCurve(camTo, camFrom, duration, easeLocation, easeRotation, easeFov)

Parameters

ParameterTypeJavaScriptLua
camToCamnumberinteger
camFromCamnumberinteger
durationintnumberinteger
easeLocationintnumberinteger
easeRotationintnumberinteger
easeFovintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void _ACTIVATE_CAM_WITH_INTERP_AND_FOV_CURVE(Cam camTo, Cam camFrom, int duration, int easeLocation, int easeRotation, int easeFov)
Hash
0x34CFC4C2A38E83E3
Introduced
Game build 3258 legacy numbering

Open in the interactive natives reference