VehicleClient

setShouldResetTurretInScriptedCameras

SET_SHOULD_RESET_TURRET_IN_SCRIPTED_CAMERAS0x78CEEE41F49F421F

The GTA V native SET_SHOULD_RESET_TURRET_IN_SCRIPTED_CAMERAS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setShouldResetTurretInScriptedCameras, in JavaScript and in Lua.

SignatureJavaScript
setShouldResetTurretInScriptedCameras(
  vehicle: Vehicle,
  shouldReset: boolean
): void
SignatureLua
setShouldResetTurretInScriptedCameras(
  vehicle: Vehicle,
  shouldReset: boolean
)

Usage

JavaScript
setShouldResetTurretInScriptedCameras(vehicle, shouldReset);
Lua
setShouldResetTurretInScriptedCameras(vehicle, shouldReset)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
shouldResetBOOLbooleanboolean

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.

Resets the vehicle's turret to its default position in scripted cameras. Doesn't seem to affect turrets that are occupied by a ped.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_SHOULD_RESET_TURRET_IN_SCRIPTED_CAMERAS(Vehicle vehicle, BOOL shouldReset)
Hash
0x78CEEE41F49F421F
Introduced
Game build 1103 legacy numbering

Open in the interactive natives reference