VehicleClient

setBikeOnStand

SET_BIKE_ON_STAND0x9CFA4896C3A53CBB

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

SignatureJavaScript
setBikeOnStand(vehicle: Vehicle, x: number, y: number): void
SignatureLua
setBikeOnStand(vehicle: Vehicle, x: number, y: number)

Usage

JavaScript
setBikeOnStand(vehicle, x, y);
Lua
setBikeOnStand(vehicle, x, y)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
xfloatnumbernumber
yfloatnumbernumber

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.

Only works on bikes, both X and Y work in the -1 - 1 range.

X forces the bike to turn left or right (-1, 1)
Y forces the bike to lean to the left or to the right (-1, 1)

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_BIKE_ON_STAND(Vehicle vehicle, float x, float y)
Hash
0x9CFA4896C3A53CBB
Formerly
_SET_BIKE_LEAN_ANGLE

Open in the interactive natives reference