self:set_brake
Client
Sets the whole-chassis brake force of the vehicle body
Syntax
local status = self:set_brake(
brake
)Parameters
| Type | Name | Description |
|---|---|---|
float | brake | Brake force to apply across the whole chassis |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.vehicle.create()
entity:set_brake(10)