M MY Multiplayer: Wiki
Side
Kind

setVehicleWheelCamber

Shared

Tilts a vehicle's wheels in or out (camber).

bool setVehicleWheelCamber(element vehicle, int|string|table wheels, float camber)

Parameters

NameTypeDescription
vehicleelementThe vehicle. It can also be a parent element: every vehicle below it changes.
wheelsint|string|tableWhich wheels: a number (0 front left, 1 rear left, 2 front right, 3 rear right, 4 onwards the extra wheels, -1 all), the wheel's name (wheel_lf, wheel_lr, wheel_rf, wheel_rr or an extra wheel such as wheel_lm1), a group (all, front_wheels, rear_wheels, left_wheels, right_wheels) or a table of these.
camberfloatAngle in degrees, from -90 to 90. Negative tilts the top of the wheel inward.

Returns

true if the element given is a vehicle that has every wheel asked for. Also false when the vehicle already has 16 tuned wheels.

0 puts the wheel back to normal. Called on the server, the change reaches every player.

Example

addCommandHandler("stance", function(player)
    local vehicle = getPedOccupiedVehicle(player)
    if vehicle then
        setVehicleWheelCamber(vehicle, "rear_wheels", -8)
    end
end)
NoteAn angle outside -90 to 90 is an error.

See also