CameraClient

renderScriptCams

RENDER_SCRIPT_CAMS0x07E5B515DB0636FC

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

SignatureJavaScript
renderScriptCams(
  render: boolean,
  ease: boolean,
  easeTime: number,
  p3: boolean,
  p4: boolean,
  p5: any
): void
SignatureLua
renderScriptCams(
  render: boolean,
  ease: boolean,
  easeTime: integer,
  p3: boolean,
  p4: boolean,
  p5: any
)

Usage

JavaScript
renderScriptCams(render, ease, easeTime, p3, p4, p5);
Lua
renderScriptCams(render, ease, easeTime, p3, p4, p5)

Parameters

ParameterTypeJavaScriptLua
renderBOOLbooleanboolean
easeBOOLbooleanboolean
easeTimeintnumberinteger
p3BOOLbooleanboolean
p4BOOLbooleanboolean
p5Anyanyany

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.

ease - smooth transition between the camera's positions
easeTime - Time in milliseconds for the transition to happen

If you have created a script (rendering) camera, and want to go back to the
character (gameplay) camera, call this native with render set to 0.
Setting ease to 1 will smooth the transition.

Reference

Namespace
Camera CAM
In the game
void RENDER_SCRIPT_CAMS(BOOL render, BOOL ease, int easeTime, BOOL p3, BOOL p4, Any p5)
Hash
0x07E5B515DB0636FC

Open in the interactive natives reference