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
vehicleEntity
The target vehicle entityisHandBrake
Whether 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
vehicleEntity
The target vehicle entityisAcceleration
Whether speed acceleration is enabled
void YaVehicleAPI.SetEnable(YaEntity vehicleEntity, boolean enable)
SERVER ONLY