Peppo_o'Paccio Posted December 18, 2010 Share Posted December 18, 2010 I don't script from a lot of time, but now I wanted to create CLEO mods again. Here is my question: how can you make a defined actor join your gang, like if you recruited him? For example, I use this (unfinished) script: {$CLEO .cs}:Police03A4: name_thread 'POL':Police_10001: wait 0 msif0256: player $PLAYER_CHAR definedjf @Police_1if810F: not player $PLAYER_CHAR wanted_level > 0 jf @Police_1 if and0AB0: key_pressed 320AB0: key_pressed 8080DF: not actor $PLAYER_ACTOR drivingjf @Police_10247: load_model #LAPD10247: load_model #COPCARLA0247: load_model #CELLPHONEif and0248: model #LAPD1 available0248: model #COPCARLA available0248: model #CELLPHONE availablejf @Police_10729: AS_actor $PLAYER_ACTOR hold_cellphone 10001: wait 4000 ms0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 04C4: store_coords_to 0@ 1@ 2@ from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.004C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 200.0 0.0 0.002C1: store_to 6@ 7@ 8@ car_path_coords_closest_to 3@ 4@ 5@00A5: 9@ = create_car #COPCARLA at 6@ 7@ 8@0129: 10@ = create_actor_pedtype 8 model #LAPD1 in_car 9@ driverseat01C8: 11@ = create_actor_pedtype 8 model #LAPD1 in_car 9@ passenger_seat 1 01C8: 12@ = create_actor_pedtype 8 model #LAPD1 in_car 9@ passenger_seat 20186: 13@ = create_marker_above_car 9@07E0: set_marker 13@ type_to 102AC: set_car 9@ immunities BP 1 FP 1 EP 1 CP 1 MP 1 00AD: set_car 9@ max_speed_to 60.000AE: set_car 9@ traffic_behaviour_to 200A7: car 9@ drive_to 0@ 1@ 2@0249: release_model #LAPD10249: release_model #COPCARLA0249: release_model #CELLPHONE :Police_20001: wait 0 msif01AD: car 9@ sphere 0 near_point 0@ 1@ radius 5.0 5.0jf @Police_20164: disable_marker 13@ 0633: AS_actor 10@ exit_car0633: AS_actor 11@ exit_car0633: AS_actor 12@ exit_car//If you press P and the spacebar, a police car phoned by CJ arrives and the three person in it exit the car Now, how can I say "put 10@, 11@ and 12@ in CJ's gang", like if I recruited them? And I also have minor questions: 1. If I put end_custom_thread, why can't I see the marker on the car? I can see it only on the radar. 2. How can I make the police lights activated? Thanks in advance. Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/ Share on other sites More sharing options...
TheSiggi Posted December 18, 2010 Share Posted December 18, 2010 0631: put_actor $ACTOR_RYDER in_group $PLAYER_GROUP 1st: Is not related to 0A95, but rather for the parametre you pass as flag which depends on the opcode 2nd: 0397: enable_car 103@ siren 1 Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060251790 Share on other sites More sharing options...
Peppo_o'Paccio Posted December 18, 2010 Author Share Posted December 18, 2010 (edited) Thanks for your immediate answer, The_Siggi: I'll try those opcodes as fast as possible. EDIT: They work perfectly! By the way, what do I have to do if I want to fix the error of the marker? Edited December 18, 2010 by Peppo_o'Paccio Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060251794 Share on other sites More sharing options...
TheSiggi Posted December 18, 2010 Share Posted December 18, 2010 use 0161: 341@ = create_marker_above_car 340@ unknown 0 radar_mode 1 and play around with the last parameter, I guess its a boolean 0/1 Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060251814 Share on other sites More sharing options...
Peppo_o'Paccio Posted December 18, 2010 Author Share Posted December 18, 2010 It doesn't work: I tried to use 0, 1, 2, 3 and 4 as last parameter, but I still don't see any markers over the car. Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060251846 Share on other sites More sharing options...
BnB Posted December 19, 2010 Share Posted December 19, 2010 0186: 1@ = create_marker_above_car 0@ 0186 Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060253254 Share on other sites More sharing options...
Peppo_o'Paccio Posted December 19, 2010 Author Share Posted December 19, 2010 0186: 1@ = create_marker_above_car 0@ 0186 Errr... Look at the first post, please: it doesn't work either. Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060253354 Share on other sites More sharing options...
BnB Posted December 19, 2010 Share Posted December 19, 2010 Weird somewhere you may have made a mistake just attach an object and create a marker above it. Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060253555 Share on other sites More sharing options...
Peppo_o'Paccio Posted December 26, 2010 Author Share Posted December 26, 2010 I solved the problem: it was caused by another CLEO script, which disabled all the markers (including the yellow ones). Link to comment https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/#findComment-1060264863 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