CameraClient

setInVehicleCamStateThisUpdate

SET_IN_VEHICLE_CAM_STATE_THIS_UPDATE0xE9EA16D6E54CDCA4

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

SignatureJavaScript
setInVehicleCamStateThisUpdate(p0: Vehicle, p1: number): void
SignatureLua
setInVehicleCamStateThisUpdate(p0: Vehicle, p1: integer)

Usage

JavaScript
setInVehicleCamStateThisUpdate(p0, p1);
Lua
setInVehicleCamStateThisUpdate(p0, p1)

Parameters

ParameterTypeJavaScriptLua
p0Vehiclenumberinteger
p1intnumberinteger

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.

Forces gameplay cam to specified vehicle as if you were in it

Reference

Namespace
Camera CAM
In the game
void SET_IN_VEHICLE_CAM_STATE_THIS_UPDATE(Vehicle p0, int p1)
Hash
0xE9EA16D6E54CDCA4

Open in the interactive natives reference