- Documentation
- Server functions
- setVehicleWheelScale
Function
setVehicleWheelScale
Stores a multiplier for the vehicle's wheel size (1 = normal).
Syntax
bool setVehicleWheelScale(vehicle vehicle, float value)Arguments
vehiclevehicle- The vehicle.
valuefloat- Multiplier 0.1-10.
Returns
true on success.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehicleWheelScale(vehicle, 1.2)
Notes
State for scripts. Wheels in the game do not change; the wheel size of custom models is changed with the client-side setVehicleModelWheelSize.
See also
getVehicleWheelScaleReturns the wheel size multiplier stored withsetVehicleWheelScale(1 by default).setVehicleModelWheelSizeChanges the wheel diameter of a vehicle model. On the client it changes the wheels of vehicles with a custom model (engineReplaceModel) for this player; game cars' wheels stay as they are. On the server it only stores the value for scripts.