YaVehicleAPI
YaVehicleAPI manges vehicles, drivers, and trigger events in the gameFunctions
void YaVehicleAPI.SetHandBrake(YaEntity vehicleEntity, boolean isHandBrake)
SERVER ONLY
Sets the handbrake state of a vehicle. Disabled by default. When the handbrake is on, the vehicle's speed gradually decreases to zero
vehicleEntityThe target vehicle entityisHandBrakeWhether the handbrake is enabled
void YaVehicleAPI.SetAcceleration(YaEntity vehicleEntity, boolean isAcceleration)
SERVER ONLY
Sets the acceleration state of a vehicle. Disabled by default. When acceleration is on, the vehicle's speed increases
vehicleEntityThe target vehicle entityisAccelerationWhether speed acceleration is enabled
void YaVehicleAPI.SetEnable(YaEntity vehicleEntity, boolean enable)
SERVER ONLY