VehicleClient

setVehicleBobbleheadVelocity

SET_VEHICLE_BOBBLEHEAD_VELOCITY0x870B8B7A766615C8

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

SignatureJavaScript
setVehicleBobbleheadVelocity(x: number, y: number, p2: number): void
SignatureLua
setVehicleBobbleheadVelocity(x: number, y: number, p2: number)

Usage

JavaScript
setVehicleBobbleheadVelocity(x, y, p2);
Lua
setVehicleBobbleheadVelocity(x, y, p2)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
p2floatnumbernumber

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.

Controls how fast bobbleheads and tsurikawas move on each axis.

p2 is probably z, but changing that value didn't seem to have a noticeable effect.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_BOBBLEHEAD_VELOCITY(float x, float y, float p2)
Hash
0x870B8B7A766615C8
Introduced
Game build 505 legacy numbering

Open in the interactive natives reference