setMaxspeed

open fun setMaxspeed(maxSpeed: Int)

Set the maximum speed, which a vehicle could achieve. Allowed values are in range [0, 255], 0 means no limit. If another value is set, it will automatically default to 255