Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

Cant make spawned ped part of player gang


Irsis
 Share

Recommended Posts

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_GROUP
Am 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 by Irsis
Link to comment
Share on other sites

it should
be so show me all the code is you repair

///--------------------------------------------------------------------------------

07AF: $PLAYER_GROUP = player $PLAYER_CHAR group
0631: put_actor [email protected] in_group $PLAYER_GROUP
0631: put_actor [email protected] in_group $PLAYER_GROUP
0631: put_actor [email protected] in_group $PLAYER_GROUP
0631: put_actor [email protected] in_group $PLAYER_GROUP

///--------------------------------------------------------------------------------

see my example

07AF: $PLAYER_GROUP = player $PLAYER_CHAR group
if
not Actor.Dead([email protected])
jf @CAX_12D1
05CD: AS_actor [email protected] exit_car [email protected]
0631: put_actor [email protected] in_group $PLAYER_GROUP

:CAX_12D1
if
not Actor.Dead([email protected])
jf @CAX_12F1
05CD: AS_actor [email protected] exit_car [email protected]
0631: put_actor [email protected] in_group $PLAYER_GROUP

:CAX_12F1
if
not Actor.Dead([email protected])
jf @CAX_1311
05CD: AS_actor [email protected] exit_car [email protected]
0631: put_actor [email protected] in_group $PLAYER_GROUP

:CAX_1311
if
not Actor.Dead([email protected])
jf @CAX_1335
05CD: AS_actor [email protected] exit_car [email protected]
0631: put_actor [email protected] in_group $PLAYER_GROUP
wait 50

:CAX_1335

Link to comment
Share on other sites

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

thanks to it you will have it repaired and I will test it by the way :colgate:

{$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 by Sanmodder
Link to comment
Share on other sites

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
  • Like 2
Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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