Speed limiter by class

I’m looking for someone who has or can develop a script that has the function of limiting the final speed of vehicles in a vRP server, but separated by class, for example: Cars: 250 Km/h, Motorcycles: 200 Km/h