setCamActiveWithInterp
SET_CAM_ACTIVE_WITH_INTERP0x9FBDA379383A52A4The GTA V native SET_CAM_ACTIVE_WITH_INTERP of the CAM namespace, as LS:MP client scripts call it: the global function setCamActiveWithInterp, in JavaScript and in Lua.
setCamActiveWithInterp(
camTo: Cam,
camFrom: Cam,
duration: number,
easeLocation: number,
easeRotation: number
): voidsetCamActiveWithInterp(
camTo: Cam,
camFrom: Cam,
duration: integer,
easeLocation: integer,
easeRotation: integer
)Usage
JavaScript
setCamActiveWithInterp(camTo, camFrom, duration, easeLocation, easeRotation);Lua
setCamActiveWithInterp(camTo, camFrom, duration, easeLocation, easeRotation)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
camTo | Cam | number | integer |
camFrom | Cam | number | integer |
duration | int | number | integer |
easeLocation | int | number | integer |
easeRotation | int | number | integer |
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.
Previous declaration void setCamActiveWithInterp(Cam camTo, Cam camFrom, int duration, BOOL easeLocation, BOOL easeRotation) is completely wrong. The last two params are integers not BOOLs...
Reference
- Namespace
- Camera CAM
- In the game
void SET_CAM_ACTIVE_WITH_INTERP(Cam camTo, Cam camFrom, int duration, int easeLocation, int easeRotation)- Hash
0x9FBDA379383A52A4