Irsis Posted December 24, 2017 Share Posted December 24, 2017 (edited) Hi everyone. like the title said, my spawned ped cant turn into member of player gang, they act just like a normal ped when they out of the car even though i already add this code into the script. by the way, Its gangcarcall mod by ZAZ $PLAYER_GROUP = player $PLAYER_CHAR group0631: put_actor [email protected] in_group $PLAYER_GROUPAm i misplace the code? May i know how to fix this issue? Here's the script: :GGA_301wait 0 if Player.Defined($PLAYER_CHAR)else_jump @GGA_301 [email protected] = 90000 0062: [email protected] -= [email protected] // (int) if [email protected] > 0 else_jump @GGA_1446 [email protected] /= 1000 03F0: enable_text_draw 1 033F: set_text_draw_letter_size 0.6 2.5 045A: draw_text_1number 550.0 120.0 GXT 'NUMBER' number [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -800.0 -800.0 0.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 800.0 800.0 0.0 053E: [email protected] = get_random_car_with_model -1 in_rectangle_cornerA [email protected] [email protected] cornerB [email protected] [email protected] 07AF: $PLAYER_GROUP = player $PLAYER_CHAR groupif not [email protected] == -1 else_jump @GGA_301 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 [email protected] = Car.Angle([email protected])[email protected] = Car.Create(567, [email protected], [email protected], [email protected])Car.Angle([email protected]) = [email protected]: set_car [email protected] primary_color_to 1 secondary_color_to 1 06ED: set_car [email protected] paintjob 2 06E7: [email protected] = add_car_component 1009 to_car [email protected] [email protected] = Actor.CreateAsDriver(Gang2, 290, [email protected])[email protected] = Actor.CreateAsPassenger(Gang2, 105, [email protected], 0)[email protected] = Actor.CreateAsPassenger(Gang2, 106, [email protected], 1)[email protected] = Actor.CreateAsPassenger(Gang2, 107, [email protected], 2)Car.Destroy([email protected])[email protected] = 0 [email protected] = Marker.CreateAboveActor([email protected])Marker.SetColor([email protected], 1)Actor.GiveWeaponAndAmmo([email protected], MicroUzi, 99999)Actor.GiveWeaponAndAmmo([email protected], AK47, 99999)Actor.GiveWeaponAndAmmo([email protected], Sawnoff, 99999)Actor.GiveWeaponAndAmmo([email protected], Tec9, 99999)Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.Health([email protected]) = 700Actor.Health([email protected]) = 500Actor.Health([email protected]) = 500Actor.Health([email protected]) = 5000631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUPwait 1000 Thank you! Edited December 24, 2017 by Irsis Link to comment Share on other sites More sharing options...
Sanmodder Posted December 24, 2017 Share Posted December 24, 2017 it shouldbe so show me all the code is you repair ///-------------------------------------------------------------------------------- 07AF: $PLAYER_GROUP = player $PLAYER_CHAR group0631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUP ///-------------------------------------------------------------------------------- see my example 07AF: $PLAYER_GROUP = player $PLAYER_CHAR groupif not Actor.Dead([email protected])jf @CAX_12D105CD: AS_actor [email protected] exit_car [email protected]0631: put_actor [email protected] in_group $PLAYER_GROUP:CAX_12D1if not Actor.Dead([email protected])jf @CAX_12F105CD: AS_actor [email protected] exit_car [email protected]0631: put_actor [email protected] in_group $PLAYER_GROUP:CAX_12F1if not Actor.Dead([email protected])jf @CAX_131105CD: AS_actor [email protected] exit_car [email protected]0631: put_actor [email protected] in_group $PLAYER_GROUP:CAX_1311if not Actor.Dead([email protected])jf @CAX_133505CD: AS_actor [email protected] exit_car [email protected]0631: put_actor [email protected] in_group $PLAYER_GROUPwait 50:CAX_1335 Irsis 1 Link to comment Share on other sites More sharing options...
Irsis Posted December 24, 2017 Author Share Posted December 24, 2017 Heres the first part of the code //-------------MAIN---------------thread 'GGA' wait 1000 [email protected] = 0 [email protected] = 0 :GGA_30wait 0 if Player.Defined($PLAYER_CHAR)else_jump @GGA_30 077E: get_active_interior_to [email protected] if and09E7: player $PLAYER_CHAR not_frozen [email protected] == 0 not Actor.Driving($PLAYER_ACTOR)0AB0: key_pressed 48 [email protected] == 0 else_jump @GGA_30 if [email protected] == 0 else_jump @GGA_1531 [email protected] = 1 Model.Load(567)Model.Load(330)Model.Load(105)Model.Load(106)Model.Load(107)Model.Load(352)Model.Load(355)Model.Load(350)06E9: load_car_component 1009 023C: load_special_actor 'ogloc' as 1 // models 290-299 :GGA_174if or823D: not special_actor 1 loaded not Model.Available(352) not Model.Available(355) not Model.Available(350) not Model.Available(330)else_jump @GGA_233 023C: load_special_actor 'ogloc' as 1 // models 290-299 wait 0 jump @GGA_174 :GGA_233wait 0 if and Model.Available(105) Model.Available(106) Model.Available(107) Model.Available(567)06EA: car_component 1009 available else_jump @GGA_233 0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 [email protected] = 90000 [email protected] = 0 [email protected] = 1 :GGA_301wait 0 if Player.Defined($PLAYER_CHAR)else_jump @GGA_301 [email protected] = 90000 0062: [email protected] -= [email protected] // (int) if [email protected] > 0 else_jump @GGA_1446 [email protected] /= 1000 03F0: enable_text_draw 1 033F: set_text_draw_letter_size 0.6 2.5 045A: draw_text_1number 550.0 120.0 GXT 'NUMBER' number [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -800.0 -800.0 0.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 800.0 800.0 0.0 053E: [email protected] = get_random_car_with_model -1 in_rectangle_cornerA [email protected] [email protected] cornerB [email protected] [email protected] 07AF: $PLAYER_GROUP = player $PLAYER_CHAR groupif not [email protected] == -1 else_jump @GGA_301 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 [email protected] = Car.Angle([email protected])[email protected] = Car.Create(567, [email protected], [email protected], [email protected])Car.Angle([email protected]) = [email protected]: set_car [email protected] primary_color_to 1 secondary_color_to 1 06ED: set_car [email protected] paintjob 2 06E7: [email protected] = add_car_component 1009 to_car [email protected] [email protected] = Actor.CreateAsDriver(Gang2, 290, [email protected])[email protected] = Actor.CreateAsPassenger(Gang2, 105, [email protected], 0)[email protected] = Actor.CreateAsPassenger(Gang2, 106, [email protected], 1)[email protected] = Actor.CreateAsPassenger(Gang2, 107, [email protected], 2)Car.Destroy([email protected])[email protected] = 0 [email protected] = Marker.CreateAboveActor([email protected])Marker.SetColor([email protected], 1)Actor.GiveWeaponAndAmmo([email protected], MicroUzi, 99999)Actor.GiveWeaponAndAmmo([email protected], AK47, 99999)Actor.GiveWeaponAndAmmo([email protected], Sawnoff, 99999)Actor.GiveWeaponAndAmmo([email protected], Tec9, 99999)Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.Health([email protected]) = 700Actor.Health([email protected]) = 500Actor.Health([email protected]) = 500Actor.Health([email protected]) = 5000631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUP0631: put_actor [email protected] in_group $PLAYER_GROUPwait 1000 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 1.0 Car.DriveTo([email protected], [email protected], [email protected], [email protected])Car.SetSpeedInstantly([email protected], 20.0)Car.SetDriverBehaviour([email protected], FollowRoad)00AE: set_car [email protected] traffic_behaviour_to 2 0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 Model.Destroy(567)Model.Destroy(330)Model.Destroy(355)Model.Destroy(105)Model.Destroy(106)Model.Destroy(107)Model.Destroy(350)Model.Destroy(352)06EB: release_car_component 1009 0296: unload_special_actor 1 Car.SetImmunities([email protected], 1, 1, 1, 1, 1):GGA_912wait 0 if Player.Defined($PLAYER_CHAR)else_jump @GGA_1362 077E: get_active_interior_to [email protected] [email protected] = 90000 0062: [email protected] -= [email protected] // (int) if and09E7: player $PLAYER_CHAR not_frozen [email protected] == 0 not Car.Wrecked([email protected])81F4: not car [email protected] flipped 8AB0: not key_pressed 48 [email protected] > 0 else_jump @GGA_1362 [email protected] /= 1000 03F0: enable_text_draw 1 033F: set_text_draw_letter_size 0.6 2.5 045A: draw_text_1number 550.0 120.0 GXT 'NUMBER' number [email protected] if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 10.0 10.0 sphere 0 else_jump @GGA_1119 Car.SetMaxSpeed([email protected], 0.0)wait 0 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car 0633: AS_actor [email protected] exit_car jump @GGA_1362 :GGA_1119if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 50.0 50.0 sphere 0 else_jump @GGA_1200 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 1.0 Car.DriveTo([email protected], [email protected], [email protected], [email protected])jump @GGA_912 :GGA_1200if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 100.0 100.0 sphere 0 else_jump @GGA_1281 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 1.0 Car.DriveTo([email protected], [email protected], [email protected], [email protected])jump @GGA_912 :GGA_1281if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 300.0 300.0 sphere 0 else_jump @GGA_912 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 1.0 Car.DriveTo([email protected], [email protected], [email protected], [email protected])jump @GGA_912 :GGA_136203F0: enable_text_draw 0 [email protected] = 0 [email protected] = 0 [email protected] = 0 [email protected] = 0 Marker.Disable([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Car.SetImmunities([email protected], 0, 0, 0, 0, 0)Car.RemoveReferences([email protected])jump @GGA_30 :GGA_144603F0: enable_text_draw 0 [email protected] = 0 [email protected] = 0 0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 Model.Destroy(567)Model.Destroy(330)Model.Destroy(355)Model.Destroy(105)Model.Destroy(106)Model.Destroy(107)Model.Destroy(350)Model.Destroy(352)06EB: release_car_component 1009 0296: unload_special_actor 1 [email protected] = 0 jump @GGA_30 Link to comment Share on other sites More sharing options...
Sanmodder Posted December 24, 2017 Share Posted December 24, 2017 (edited) thanks to it you will have it repaired and I will test it by the way {$CLEO}0000:thread 'GGA'[email protected] = 48 //start keywhile truewait 0gosub @wait_to_actionend :wait_to_actionwhile true wait 0 if Player.Defined(0) then 077E: get_active_interior_to [email protected] if and 09E7: player 0 not_frozen [email protected] == 0 not Actor.Driving($PLAYER_ACTOR) 0AB0: key_pressed [email protected] then break end endend :startwait 0Model.Load(567)Model.Load(330)Model.Load(105)Model.Load(106)Model.Load(107)Model.Load(352)Model.Load(355)Model.Load(350)06E9: load_car_component 1009023C: load_special_actor 'ogloc' as 1 // models 290-299038B: load_requested_models if or 823D: not special_actor 1 loaded not Model.Available(567) not Model.Available(105) not Model.Available(106) not Model.Available(107) then 0ACd: "~r~~h~error unable to load" time 100 goto @start //error end if or not Model.Available(352) not Model.Available(355) not Model.Available(350) not Model.Available(330) 86EA: not car_component 1009 available then 0ACd: "~r~~h~error unable to load" time 100 goto @start //errorend//succes continue0729: AS_actor $PLAYER_ACTOR hold_cellphone 1while true wait 0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -800.0 -800.0 0.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 800.0 800.0 0.0 053E: [email protected] = get_random_car_with_model -1 in_rectangle_cornerA [email protected] [email protected] cornerB [email protected] [email protected] if not [email protected] == -1 then break endend 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 [email protected] = Car.Angle([email protected])[email protected] = Car.Create(567, [email protected], [email protected], [email protected])Car.Angle([email protected]) = [email protected]: set_car [email protected] primary_color_to 1 secondary_color_to 106ED: set_car [email protected] paintjob 206E7: [email protected] = add_car_component 1009 to_car [email protected]@ = Actor.CreateAsDriver(Gang2, 290, [email protected])[email protected] = Actor.CreateAsPassenger(Gang2, 105, [email protected], 0)[email protected] = Actor.CreateAsPassenger(Gang2, 106, [email protected], 1)[email protected] = Actor.CreateAsPassenger(Gang2, 107, [email protected], 2)Car.Destroy([email protected])[email protected] = [email protected] = Marker.CreateAbovecar([email protected])Marker.SetColor([email protected], 1)018B: set_marker [email protected] radar_mode 2Actor.GiveWeaponAndAmmo([email protected], MicroUzi, 99999)Actor.GiveWeaponAndAmmo([email protected], AK47, 99999)Actor.GiveWeaponAndAmmo([email protected], Sawnoff, 99999)Actor.GiveWeaponAndAmmo([email protected], Tec9, 99999)Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.WeaponAccuracy([email protected]) = 100Actor.Health([email protected]) = 700Actor.Health([email protected]) = 500Actor.Health([email protected]) = 500Actor.Health([email protected]) = 500wait 1000Car.SetSpeedInstantly([email protected], 10.0)Car.SetDriverBehaviour([email protected], drivetoplayer)00AE: set_car [email protected] traffic_behaviour_to 20729: AS_actor $PLAYER_ACTOR hold_cellphone 0Model.Destroy(567)Model.Destroy(330)Model.Destroy(355)Model.Destroy(105)Model.Destroy(106)Model.Destroy(107)Model.Destroy(350)Model.Destroy(352)06EB: release_car_component 10090296: unload_special_actor 1Car.SetImmunities([email protected], 1, 1, 1, 1, 1)while true wait 0 if Player.Defined(0) then 077E: get_active_interior_to [email protected] if and 09E7: player 0 not_frozen [email protected] == 0 then if 0202: actor $PLAYER_ACTOR near_car [email protected] radius 10.0 10.0 sphere 0 then if not car.wrecked([email protected]) then Car.SetMaxSpeed([email protected], 0.0) Marker.Disable([email protected]) wait 0 07AF: [email protected] = player 0 group 0632: release_group [email protected] if not actor.Dead([email protected]) then 0633: AS_actor [email protected] exit_car 0631: put_actor [email protected] in_group [email protected] 07CB: set_actor [email protected] supporting_fire 1 end if not actor.Dead([email protected]) then 0633: AS_actor [email protected] exit_car 0631: put_actor [email protected] in_group [email protected] 07CB: set_actor [email protected] supporting_fire 1 end if not actor.Dead([email protected]) then 0633: AS_actor [email protected] exit_car 0631: put_actor [email protected] in_group [email protected] 07CB: set_actor [email protected] supporting_fire 1 end if not actor.Dead([email protected]) then 0633: AS_actor [email protected] exit_car 0631: put_actor [email protected] in_group [email protected] 07CB: set_actor [email protected] supporting_fire 1 end 06F0: set_group [email protected] distance_limit_to 999999999.0 break end if or 0AB0: key_pressed [email protected] Car.Wrecked([email protected]) then goto @cleaner end end end end end//heckingwhile true wait 0 if and actor.Dead([email protected]) actor.Dead([email protected]) actor.Dead([email protected]) actor.Dead([email protected]) then break end if or 0AB0: key_pressed [email protected] player.Wasted(0) 0741: actor $PLAYER_ACTOR busted then break endend0ACA: "~y~~h~cleaner":cleanerActor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Car.RemoveReferences([email protected])wait 500returnend_thread Edited December 25, 2017 by Sanmodder Irsis 1 Link to comment Share on other sites More sharing options...
ZAZ Posted December 25, 2017 Share Posted December 25, 2017 Add opcode 07CB:Also, i recommand to release first the $PLAYER_CHAR group before adding members, because it can crash if the player already have a full homie gang with 7 members 07AF: [email protected] = player $PLAYER_CHAR group0632: release_group [email protected]: [email protected] = player $PLAYER_CHAR group0631: put_actor [email protected] in_group [email protected]: set_actor [email protected] supporting_fire 0 Irsis and Sanmodder 2 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Sanmodder Posted December 25, 2017 Share Posted December 25, 2017 thanks for the tips Link to comment Share on other sites More sharing options...
Irsis Posted December 26, 2017 Author Share Posted December 26, 2017 (edited) Thank you Sanmodder and ZAZ!! You guys are always helpful!! Edited December 26, 2017 by Irsis Sanmodder 1 Link to comment Share on other sites More sharing options...