// FOR ALL CARS SNIPPSET
//
:X
wait 0
if
XXXX: X // check whatever you want
jf @X
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@
// GOT THE CAR.
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
Car.PutAt(31@, 1@, 2@, 3@) // PUT ALL ...
end
end
// FOR ALLCARS END
jump @X
Thanks :urtheman:D.Kay link said:Code:// FOR ALL CARS SNIPPSET // :X wait 0 if XXXX: X // check whatever you want jf @X 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@ // GOT THE CAR. Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@) Car.PutAt(31@, 1@, 2@, 3@) // PUT ALL ... end end // FOR ALLCARS END jump @X
for 0@ = 0 to 2000
if 0AFF: samp 1@ = car_handle_by_samp_vehicle_id 0@
then
00AB: put_car 1@ at 2@ 3@ 4@
4@ += 2.0
end
end
Thanks, This is better :urtheman:monday link said:Or you can use this one (it doesn't work for single player though)
Code:for 0@ = 0 to 2000 if 0AFF: samp 1@ = car_handle_by_samp_vehicle_id 0@ then 00AB: put_car 1@ at 2@ 3@ 4@ 4@ += 2.0 end end
Changing the position a bit (4@ += 2.0) is quite important if you want to tp all the cars to one place, if you don't use it you'll get a one big lag