maxspeed

speed limiter

The script is a simple speed limiter script that sets a speed limit of 232 km/h on all vehicles in your server. It is perfect for realism servers that want to make sure that no vehicles are driving unrealistically fast.

But you can easily change the speed. I'll explain how to do that here.

functions

  • speed limit: Sets the maximum speed of all vehicles to 232 km/h.
  • compatibility: Works with ESX LEGACY version 1.3 to 1.6. But also with QBCore!

installation

  1. Download: Download the script and unpack it into your resources folder on your FiveM server.
  2. Server.cfg Update: Add ensure Global-Speed-Limit-FiveM to your server.cfg File to load the script when the server starts:ensure Global-Speed-Limit-FiveM
  3. Restart: Restart your server to activate the script.

advantages and benefits

  • security check: Prevents driving at extremely high speeds, increasing control and security on your server.
  • Easy to use: Quick installation and low configuration requirements make the script easy to use. Ready to use right away!

Download Global-Speed-Limit-FiveM


Change maximum speed

change speed

  1. Open the script: Open the file you from the download received in a text editor.
  2. Find the relevant code section: if math.floor(currentcarspeed*mph) == 230 then --<<<<< Change this value setspeed = GetEntitySpeed(GetVehiclePedIsIn(PlayerPedId(), false)) SetVehicleMaxSpeed(GetVehiclePedIsIn(PlayerPedId(), false), setspeed) end
  3. Change the speed: Replace 230 by the desired maximum speed. For example, if you want to change the speed to 200 km/h: if math.floor(currentcarspeed*mph) == 200 then setspeed = GetEntitySpeed(GetVehiclePedIsIn(PlayerPedId(), false)) SetVehicleMaxSpeed(GetVehiclePedIsIn(PlayerPedId(), false), setspeed) end
  4. Save and Restart: Save the file and restart the server for the change to take effect.
if math.floor(currentcarspeed*mph) == 230 then --<<<<< Change this value setspeed = GetEntitySpeed(GetVehiclePedIsIn(PlayerPedId(), false)) SetVehicleMaxSpeed(GetVehiclePedIsIn(PlayerPedId(), false), setspeed) end

Leave a Comment

Your email address will not be published. Required fields are marked *


Shopping Cart
en_USEnglish