CameraClient

setCamIsInsideVehicle

SET_CAM_IS_INSIDE_VEHICLE0xA2767257A320FC82

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

SignatureJavaScript
setCamIsInsideVehicle(cam: Cam, toggle: boolean): void
SignatureLua
setCamIsInsideVehicle(cam: Cam, toggle: boolean)

Usage

JavaScript
setCamIsInsideVehicle(cam, toggle);
Lua
setCamIsInsideVehicle(cam, toggle)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
toggleBOOLbooleanboolean

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.

When set to true shadows appear more smooth but less detailed.
Set to false by default.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_IS_INSIDE_VEHICLE(Cam cam, BOOL toggle)
Hash
0xA2767257A320FC82
Formerly
_SET_CAM_SMOOTH_SHADOWS

Open in the interactive natives reference