barking Posted February 18, 2011 Share Posted February 18, 2011 (edited) 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 February 18, 2011 by barking Link to comment https://gtaforums.com/topic/469974-empty-car/ Share on other sites More sharing options...
DK22Pac Posted February 18, 2011 Share Posted February 18, 2011 046C: 12@ = car 6@ driverif not actor.Defined(12@)then // Car is empty. // ...end Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060344325 Share on other sites More sharing options...
barking Posted February 18, 2011 Author Share Posted February 18, 2011 it carshes me bro Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060344534 Share on other sites More sharing options...
yair1221 Posted February 19, 2011 Share Posted February 19, 2011 :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 More sharing options...
barking Posted February 19, 2011 Author Share Posted February 19, 2011 (edited) 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 February 19, 2011 by barking Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060345264 Share on other sites More sharing options...
DK22Pac Posted February 19, 2011 Share Posted February 19, 2011 (edited) {$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 February 19, 2011 by DK22Pac Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060345430 Share on other sites More sharing options...
Bennington Posted February 19, 2011 Share Posted February 19, 2011 Wtf... barking, say, are you exacty copying the script we post here in our script? Lol You have to set labels and so on on your own. Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060345940 Share on other sites More sharing options...
barking Posted February 20, 2011 Author Share Posted February 20, 2011 DK22Pac ty so much it works but i have the last thing to ask if i want to get all the cars around me how can i do that? Bennington i set my own labels not here Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060346522 Share on other sites More sharing options...
barking Posted February 20, 2011 Author Share Posted February 20, 2011 someone? Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060347017 Share on other sites More sharing options...
barking Posted February 21, 2011 Author Share Posted February 21, 2011 if i want that it will take the all the cars near me how can i do that? Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060347991 Share on other sites More sharing options...
TheSiggi Posted February 21, 2011 Share Posted February 21, 2011 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 More sharing options...
barking Posted February 21, 2011 Author Share Posted February 21, 2011 (edited) ty man i will w8 Edited February 21, 2011 by barking Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060348196 Share on other sites More sharing options...
barking Posted February 22, 2011 Author Share Posted February 22, 2011 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 More sharing options...
Node Posted February 22, 2011 Share Posted February 22, 2011 Okay so you want cars to just drive to you but theres no actors or anybody in them so its driving on its own towards you ?? Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060350009 Share on other sites More sharing options...
barking Posted February 23, 2011 Author Share Posted February 23, 2011 hmm pretty much Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060350638 Share on other sites More sharing options...
fireguy109 Posted February 23, 2011 Share Posted February 23, 2011 You could get some code from the "ghost car" mod for SA and use that as a foundation. Link to comment https://gtaforums.com/topic/469974-empty-car/#findComment-1060350858 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now