What it does
vehicle.setBrake sets Brake on a vehicle object. It takes id and n.
Signature
vehicle.setBrake(id, n)Arguments
idn
Example · generated
function start() { vehicle.setBrake('main', 1);}vehicle.setBrake is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.