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

Possible to spawn abandoned cars through Liberty?


Whitemike20052
 Share

Recommended Posts

Whitemike20052

Or maybe wrecked vehicles like CJ_WRECK_1?

 

Or how about dead bodies? Is there a way to spawn those?

 

 

I mean spawning these objects randomly about the game world.

 

Also is there a way to increase the amount of leaves and paper that flys around as you play?

Link to comment
Share on other sites

Whitemike20052

Im trying to get random bodies, vehicles, wrecks and other ambient enviroment effects to spawn at random, can someone please help me?

Link to comment
Share on other sites

ripJuniorSeau

yeah so outbreak is written in vb, do you know any vb?

 

@Yululu

 

wtf is ornellas.exe??

 

@FaTony

 

No sh*t sherlock, next time give a helpful answer or stfu retard

Edited by ripJuniorSeau
Link to comment
Share on other sites

Whitemike20052

Yea thats what i was thinking about ornellas.exe...

 

Anyways yes its in .vb

 

 

I have no idea how to code or set up scripts at all aside from going inside the mods and editing some numbers and variables.

Link to comment
Share on other sites

  • 2 weeks later...
motorsport71

Hey, Whitemike20052, you can modify these settings smile.gif

Imports SystemImports System.CollectionsImports System.DrawingImports System.Windows.FormsImports GTAPublic Class RandomDamagedVehicles   Inherits Script   Private Son As Boolean = False   Public Sub New()       Me.interval = 1000       BindKey(Settings.GetValueKey("Toggle Script", "SETTINGS", Keys.F7), New KeyPressDelegate(AddressOf ScriptOn))   End Sub   Private Function RandomNumber(ByVal min As Integer, ByVal max As Integer) As Integer       Dim random As New Random()       Return random.Next(min, max)   End Function   Private Sub RandomVehicleDamages_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick       If son Then           Dim random As New Random()           Dim h As Integer = RandomNumber(0, 359)           Dim vs As Integer = RandomNumber(0, 5)           Dim vs2 As Integer = RandomNumber(0, 2)           Dim r As Integer = RandomNumber(0, 2)           Dim d As Integer = RandomNumber(1, 5)           Dim hz As Integer = RandomNumber(0, 4)           Dim n As Integer = RandomNumber(0, 40)           Dim ez As Integer = RandomNumber(10, 500)           If vs = 2 Then               Dim vehicle As vehicle = world.createvehicle(player.character.position.around(30.0F).toground)               If exists(vehicle) AndAlso vehicle IsNot Nothing Then                   Vehicle.EngineHealth = ez                   vehicle.dirtyness = d                   If vs2 = 0 Then                       Vehicle.PlaceOnNextStreetProperly()                       Dim blip As blip = blip.addblip(vehicle)                       blip.color = blipcolor.grey                   End If                   If vs2 = 1 Then                       vehicle.heading = h                       Vehicle.PlaceOnGroundProperly()                       Dim blip As blip = blip.addblip(vehicle)                       blip.color = blipcolor.purple                   End If                   vehicle.nolongerneeded()                   If r = 1 Then                       Vehicle.EngineRunning = False                   End If                   If hz = 2 Then                       Vehicle.HazardLightsOn = True                   End If                   If n = 2 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 0)                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 1)                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 2)                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 3)                   End If                   If n = 4 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 0)                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 2)                   End If                   If n = 7 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 1)                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 3)                   End If                   If n = 9 Then                       Native.Function.Call("BREAK_CAR_DOOR", vehicle, 6)                   End If                   If n = 13 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 0)                   End If                   If n = 16 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 5)                   End If                   If n = 17 Then                       Native.Function.Call("BREAK_CAR_DOOR", vehicle, 3)                   End If                   If n = 19 Then                       Native.Function.Call("BREAK_CAR_DOOR", vehicle, 5)                   End If                   If n = 21 Then                       Native.Function.Call("BREAK_CAR_DOOR", vehicle, 2)                   End If                   If n = 24 Then                       Native.Function.Call("BREAK_CAR_DOOR", vehicle, 4)                   End If                   If n = 28 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 4)                   End If                   If n = 32 Then                       Native.Function.Call("BREAK_CAR_DOOR", vehicle, 1)                   End If                   If n = 34 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 5)                   End If                   If n = 36 Then                       Native.Function.Call("OPEN_CAR_DOOR", vehicle, 3)                   End If                   If n = 37 Then                       Native.Function.Call("BREAK_CAR_DOOR", vehicle, 2)                   End If               End If           End If       End If   End Sub   Private Sub ScriptOn()       SON = Not SON       If SON Then           Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", "Random Vehicle Placements Activated", 4000, 1)       Else           Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", "Random Vehicle Placements Deactivated", 4000, 1)       End If   End SubEnd Class

 

 

You can delete the lines that indicate the blips....

 

Dim blip As blip = blip.addblip(vehicle)blip.color = blipcolor.purple

 

...after you see what the script is doing.

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.