setVehicleBobbleheadVelocity
SET_VEHICLE_BOBBLEHEAD_VELOCITY0x870B8B7A766615C8The 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.
setVehicleBobbleheadVelocity(x: number, y: number, p2: number): voidsetVehicleBobbleheadVelocity(x: number, y: number, p2: number)Usage
JavaScript
setVehicleBobbleheadVelocity(x, y, p2);Lua
setVehicleBobbleheadVelocity(x, y, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
p2 | float | number | number |
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