{$CLEO}
0000:
thread 'VCLimit'

wait 15000

if
    0AA9: is_game_version_original
then
else
    004E: end_thread
end


1@ = 0
2@ = 60.0
3@ = 0
6@ = 0
7@ = 0

:MAIN
wait 0

if
    0256: player $PLAYER_CHAR defined
then
    if
        00DF: actor $PLAYER_ACTOR driving
    then
        03C0: 0@ = actor $PLAYER_ACTOR car

        if
            05EE: key_pressed 75
        then
            if
                3@ == 0
            then
                3@ = 1

                if
                    1@ == 0
                then
                    1@ = 1
                else
                    1@ = 0
                end
            end
        else
            3@ = 0
        end

        if
            05EE: key_pressed 107
        then
            if
                6@ == 0
            then
                6@ = 1
                2@ += 10.0

                if
                    2@ > 200.0
                then
                    2@ = 200.0
                end
            end
        else
            6@ = 0
        end

        if
            05EE: key_pressed 109
        then
            if
                7@ == 0
            then
                7@ = 1
                2@ -= 10.0

                if
                    20.0 > 2@
                then
                    2@ = 20.0
                end
            end
        else
            7@ = 0
        end

        if
    1@ == 1
then
    0092: 8@ = float 2@ to_integer

    03F0: enable_text_draw 1
    033F: set_text_scale 0.25 0.65
    0340: set_text_colour 121 232 228 255
    0341: set_text_justify 0
    0342: set_text_center 1
    0345: set_text_background 0
    0348: set_text_proportional 1
    0349: set_text_font 1

    0609: display_text_formatted 555.0 379.0 "LIM %d" 8@

    02E3: 4@ = car 0@ speed
            4@ *= 3.6

            if
                0025: 4@ > 2@
            then
                0087: 5@ = 2@
                5@ /= 3.6

                04BA: set_car 0@ speed_to 5@
            end
        end
    else
        1@ = 0
        3@ = 0
        6@ = 0
        7@ = 0
    end
else
    1@ = 0
    3@ = 0
    6@ = 0
    7@ = 0
end

jump @MAIN