CLEO Help NOP SetVehicleVelocity

CLEO related
Status
Not open for further replies.

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
Code:
{$CLEO .cs}

0000: NOP

wait 7500

while true
    wait 0
    
    if
        0AA2: 0@ = load_library "samp.dll"
    then
        0A8E: 1@ = 0@ + 0x015C50 // int
        0A8C: write_memory 1@ size 2 value 0xC390 virtual_protect 1    
    end
end

This makes me crash as soon as the game finished to load, why?
  1. functionPatches.Push(Object("NAME", "SetVehicleVelocity", "OFFSET", 0x015030, "PATCH", 0xC390))
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
PHP:
{$CLEO .cs}
0000: NOP

repeat
wait 0
until 0afa:

repeat
wait 0
until 0AA2: 0@ = "samp.dll"

0@ += 0x015030
0A8C: write_memory 0@ size 2 value 0xC390 virtual_protect 1
end_thread
 
Status
Not open for further replies.
Top