CLEO Help Do something to all streamed cars with players inside...

CLEO related
Status
Not open for further replies.

0BE4

Active member
Joined
Jan 15, 2017
Messages
124
Reaction score
2
Can someone give me a snippet that does something(just comment where my code should be?) to all streamed cars with players inside??
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,493
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
Loop through all cars and check if someone is driving it.

PHP:
// FOR ALLCARS 
0A8D: 29@ = read_memory 0xB74494 size 4 virtual_protect 0
29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 27904 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029: 31@ >= 0x00 
        001B: 0x80 > 31@
    then
        005A: 31@ += 30@
        046C: 0@ = car 31@ driver
        if
        056D:   actor 0@ defined
        then
            
        end
    end
end
// FOR ALLCARS END

Or loop through all peds and see if he is in a car
 
Status
Not open for further replies.
Top