self:set_suspension_max_force

Client

Sets the maximum force the suspension can exert on the wheel


Syntax

local status = self:set_suspension_max_force(
    force
)

Parameters

TypeNameDescription
floatforceMaximum suspension force to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the suspension max force of a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

entity:set_suspension_max_force(6000)

On this page