setShouldResetTurretInScriptedCameras
SET_SHOULD_RESET_TURRET_IN_SCRIPTED_CAMERAS0x78CEEE41F49F421FThe 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.
setShouldResetTurretInScriptedCameras(
vehicle: Vehicle,
shouldReset: boolean
): voidsetShouldResetTurretInScriptedCameras(
vehicle: Vehicle,
shouldReset: boolean
)Usage
JavaScript
setShouldResetTurretInScriptedCameras(vehicle, shouldReset);Lua
setShouldResetTurretInScriptedCameras(vehicle, shouldReset)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
shouldReset | BOOL | boolean | boolean |
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