Resource icon

Untagged Release Bike / Motorcycle speed up

Status
Not open for further replies.

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
.

MotorcycleAndBikeSpeedUP v4 - Press continuously UP ARROW if you start drive Motorcycle also press continuously W KEY if you start drive Bike.



Working with gta sa andreas or any samp!
 

Attachments

  • MotorcycleAndBikeSpeedUP V4.cs
    20.9 KB · Views: 36
Last edited:

tieuthienthan

Active member
Joined
Nov 6, 2019
Messages
43
Reaction score
10
Location
Vietnam
hmmph both version doesn't work for me. All other cleos are working perfectly. Not sure but I think it's because of the change of memory offset 0xB733B6 in 0.3DL...
 

tieuthienthan

Active member
Joined
Nov 6, 2019
Messages
43
Reaction score
10
Location
Vietnam
For me it didn't work properly but then I try to search and then now it works
I used one of your snippets : Set Virtual Key http://ugbase.eu/index.php?threads/snippet-set-virtual-or-game-key.19933/ and now it works perfectly!
Here's code and .cs file for anyone having same problem like me!
Code:
{$CLEO .cs}

0000: NOP

wait 10000

while true
wait 0

if or
00DD:   actor $PLAYER_ACTOR driving_car_with_model 581 // BF-400
00DD:   actor $PLAYER_ACTOR driving_car_with_model 462 // Faggio
00DD:   actor $PLAYER_ACTOR driving_car_with_model 521 // FCR-900
00DD:   actor $PLAYER_ACTOR driving_car_with_model 522 // NRG-500
00DD:   actor $PLAYER_ACTOR driving_car_with_model 461 // PCJ-600
00DD:   actor $PLAYER_ACTOR driving_car_with_model 448 // Pizza Boy
00DD:   actor $PLAYER_ACTOR driving_car_with_model 468 // Sanchez
00DD:   actor $PLAYER_ACTOR driving_car_with_model 586 // Wayfarer
then
    if
    0AB0: key_pressed 87 // W
    then
        if
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 255
                WAIT 30
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 0
                wait 30
            end
        end
    end
end

if
00DD:   actor $PLAYER_ACTOR driving_car_with_model 463 // Freeway
then
    if
    0AB0: key_pressed 87 // W
    then
        if
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 255
                wait 30
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 0
                wait 30
            end
        end
    end
end

end
:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

Attachments

  • MotorcycleSpeedUP.cs
    19.4 KB · Views: 131

bloodysoul

New member
Joined
Oct 2, 2020
Messages
1
Reaction score
0
Location
sweden
For me it didn't work properly but then I try to search and then now it works
I used one of your snippets : Set Virtual Key http://ugbase.eu/index.php?threads/snippet-set-virtual-or-game-key.19933/ and now it works perfectly!
Here's code and .cs file for anyone having same problem like me!
Code:
{$CLEO .cs}

0000: NOP

wait 10000

while true
wait 0

if or
00DD:   actor $PLAYER_ACTOR driving_car_with_model 581 // BF-400
00DD:   actor $PLAYER_ACTOR driving_car_with_model 462 // Faggio
00DD:   actor $PLAYER_ACTOR driving_car_with_model 521 // FCR-900
00DD:   actor $PLAYER_ACTOR driving_car_with_model 522 // NRG-500
00DD:   actor $PLAYER_ACTOR driving_car_with_model 461 // PCJ-600
00DD:   actor $PLAYER_ACTOR driving_car_with_model 448 // Pizza Boy
00DD:   actor $PLAYER_ACTOR driving_car_with_model 468 // Sanchez
00DD:   actor $PLAYER_ACTOR driving_car_with_model 586 // Wayfarer
then
    if
    0AB0: key_pressed 87 // W
    then
        if
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 255
                WAIT 30
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 0
                wait 30
            end
        end
    end
end

if
00DD:   actor $PLAYER_ACTOR driving_car_with_model 463 // Freeway
then
    if
    0AB0: key_pressed 87 // W
    then
        if
        00DF:   actor $PLAYER_ACTOR driving
        then
            03C0: 1@ = $PLAYER_ACTOR car
            if and
            00DF:   actor $PLAYER_ACTOR driving
            81F3:   car 1@ not_in_air
            THEN
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 255
                wait 30
                0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 0
                wait 30
            end
        end
    end
end

end
:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
respect man, his code didnt work for me neither, it was just holding uparrow but ur code is working good, thanks a lot even though its really old converation :D
 
Status
Not open for further replies.
Top