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. Support

    3. Suggestions

No Drive-Bying in my mod!


Kriskers
 Share

Recommended Posts

OK, I made a mod which creates a newvan to follow you when you have more than 3 police stars but I dont want that the people in the newsvan will shoot me!!!!

My script is this:

 

 0000: NOP jump @NONAME_9 :NONAME_9wait 50 if   Player.WantedLevel($PLAYER_CHAR) > 2else_jump @NONAME_9 wait 100 Model.Load(#NEWSVAN)Model.Load(#HMOGAR)038B: load_requested_models wait 500 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 50.0 0.0 5.0 02C1: store_to [email protected] [email protected] [email protected] car_path_coords_closest_to [email protected] [email protected] [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 6.0 0.0 0.0 [email protected] = Car.Create(#NEWSVAN, [email protected], [email protected], [email protected])0209: $CARCOLOR = random_int_in_ranges 1 1 0229: set_car [email protected] primary_color_to $CARCOLOR secondary_color_to $CARCOLOR 0129: [email protected] = create_actor_pedtype 6 model #HMOGAR in_car [email protected] driverseat Actor.Health([email protected]) = 100Actor.Armour([email protected]) = 50Actor.Angle([email protected]) = 180.0060B: set_actor [email protected] decision_maker_to 3 Car.SetImmunities([email protected], 0, 0, 0, 1, 0)Actor.WeaponAccuracy([email protected]) = 750446: set_actor [email protected] immune_to_headshots 0 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 07DD: set_actor [email protected] temper_to 100 // see pedstats.dat 01C8: [email protected] = create_actor_pedtype 6 model #HMOGAR in_car [email protected] passenger_seat 0 Actor.Health([email protected]) = 100Actor.Armour([email protected]) = 50Actor.Angle([email protected]) = 180.0060B: set_actor [email protected] decision_maker_to 3 Actor.WeaponAccuracy([email protected]) = 700446: set_actor [email protected] immune_to_headshots 0 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 07DD: set_actor [email protected] temper_to 80 // see pedstats.dat Car.SetDriverBehaviour([email protected], 5)Car.SetMaxSpeed([email protected], 85.0)Car.Health([email protected]) = 5000Car.SetImmunities([email protected], 0, 0, 0, 1, 0)wait 300 jump @NONAME_377 :NONAME_377wait 50 if 00F2:   actor $PLAYER_ACTOR near_actor [email protected] radius 60.0 60.0 0 else_jump @NONAME_377 0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 90000.0 4 1 firing_rate 80 wait 60000 jump @NONAME_9 

 

Now tell me how do I do so that the newsvan drivers wouldnt driveby me!

Ive tried to delete "NONAME_377" but that crashes the game!!

Oh and also could you please tell me how do i get the newsvan drivers get out of the car when they stop near me (when I am also stopped) and they would take pictures of me!

 

Sorry for my bad English!

Link to comment
Share on other sites

pedtype 6 gives your actor the default behavior of a cop

try it with pedtype 24

 

this gives your actor also a predefined behavior:

 

060B: set_actor [email protected] decision_maker_to 3

 

I don't know which, remove the line and try it again

 

this line let one of your actors do drivby

 

0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 90000.0 4 1 firing_rate 80

 

remove it or replace it with another opcode

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.