[Release][Free] Auto Speed Limiter based on Posted Speedlimit

A small code added to [[ Posted Speedlimit by BigYoda ] ] to auto limit the car speed to the speed of the zone.

Key to activate the speedlimiter is E which can be changed in line 493

if (IsDisabledControlJustPressed(0, 38)) then

speedlimiter.rar (3.0 KB)

if you want to allow a vehicle class like police cars to not restrict to the limiter then go to line 501 and add the following

       elseif vehicleClass == 18 then
            speedlimiter = false
5 Likes

Pretty nice, I’ll probably integrate this with the current speed limiter I have. :+1:

1 Like

if i want pure auto speedlimit , i must delete line 493-506 or not?

Yes, and if you want to whitelist a class just do what i mentioned above.

is this just for the person who pressed the key or does it go server wide?

just for the person who pressed the key. if you want to make it server wide delete line 493-506

how to change mph to kmh ?

wdym?

You should do it so when an admin does a chat command in the chat like /speedlimit all the vehicles activate speedlimiter.

meterspeed = speedlimit/2.23694

How do you convert this to limit the speed in KM/H instead of MPH?

Blonde moment lol. Got it working

meterspeed = speedlimit/3.60

does this work?
I deleted the lines and it no longer works.