Jump to content

empty car?


barking

Recommended Posts

i need a code that will get only empty cars to me (without player/driver=empty car)

while im using:

0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 6@ closest_ped_to $_UNUSED_RANDOM_ACTOR

 

i thought about this code but it crashes me

 

actor.Defined(12@)046C: 12@ = car 6@ drivernot actor.InCar(12@,6@)

 

Edited by barking
Link to comment
https://gtaforums.com/topic/469974-empty-car/
Share on other sites

 

:cwait 00AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 6@ closest_ped_to $_UNUSED_RANDOM_ACTORifcar.defined(6@)jf @c046C: 12@ = car 6@ driver ifactor.defined(12@)jf @c//do as you wish//...rest of code and then a jump or thread ending command

 

it SHOULD work...

Link to comment
https://gtaforums.com/topic/469974-empty-car/#findComment-1060344916
Share on other sites

i tried it but it crashed me look

 

:CARS_232if   Car.Defined(6@)6@ = -1 if 0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 6@ closest_ped_to $_UNUSED_RANDOM_ACTOR if 046C: 12@ = car 6@ driver if   Actor.Defined(12@)jf @CARS_232 if   not 6@ == -1   not Car.Wrecked(6@)jf @CARS_232 Car.SetToPsychoDriver(6@)

 

Edited by barking
Link to comment
https://gtaforums.com/topic/469974-empty-car/#findComment-1060345264
Share on other sites

 

{$CLEO .cs}wait 250while true   wait 0   if       not player.Defined(0)   then       continue   end   actor.StorePos($player_actor, 0@, 1@, 2@)   if       0AE2: 3@ = random_vehicle_near_point 0@ 1@ 2@ in_radius 2000.0 find_next false pass_wrecked true   then       repeat           046C: 4@ = car 3@ driver           if               not actor.Defined(4@)           then               car.StorePos(3@, 5@, 6@, 7@)               016F: create_shadow_type 3 rotation_factor 0.0 size 4.0 intensity 255 RGB 255 0 0 at 5@ 6@ 7@           end                                    until 8AE2: not 3@ = random_vehicle_near_point 0@ 1@ 2@ in_radius 2000.0 find_next true pass_wrecked true   endend

 

Via labels:

 

{$CLEO .cs}wait 250 :Noname_5wait 0 if not Player.Defined(0)jf @Noname_31 jump @Noname_5 :Noname_31actor.StorePos($player_actor, 0@, 1@, 2@)if 0AE2: 3@ = random_vehicle_near_point 0@ 1@ 2@ in_radius 2000.0 find_next 0 pass_wrecked 1 jf @Noname_5 :Noname_79046C: 4@ = car 3@ driver if not actor.Defined(4@)jf @Noname_150 car.StorePos(3@, 5@, 6@, 7@)016F: create_shadow_type 3 rotation_factor 0.0 size 4.0 intensity 255 RGB 255 0 0 at 5@ 6@ 7@ :Noname_150if 8AE2: not 3@ = random_vehicle_near_point 0@ 1@ 2@ in_radius 2000.0 find_next 1 pass_wrecked 1jf @Noname_79 jump @Noname_5

 

Edited by DK22Pac
Link to comment
https://gtaforums.com/topic/469974-empty-car/#findComment-1060345430
Share on other sites

Damn it! Would you please stop with it? As soon as someone found a solution we'll post it and we're not 24/7 GTA freaks. We too have lives so be patient!

 

Getting multiple cars is possible but before you try to use arrays (thats the solution) you better read ZAZ's CLEO script tutorial and try the examples too otherwise you'll never get a routine.

 

I'll post an example later...

Link to comment
https://gtaforums.com/topic/469974-empty-car/#findComment-1060348081
Share on other sites

Damn it! Would you please stop with it? As soon as someone found a solution we'll post it and we're not 24/7 GTA freaks. We too have lives so be patient!

 

Getting multiple cars is possible but before you try to use arrays (thats the solution) you better read ZAZ's CLEO script tutorial and try the examples too otherwise you'll never get a routine.

 

I'll post an example later...

can you give me an example please i didnt understood how to do it with cars

Link to comment
https://gtaforums.com/topic/469974-empty-car/#findComment-1060349302
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.