Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      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

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Magestic Safehouse mod no longer works


vargil
 Share

Recommended Posts

http://www.gtaforums.com/index.php?showtopic=391144

 

The Magestic safehouse mod nolonger works (latest .net).

 

Could someone fix it?

Also could you have it write to a file a 1 or a 0 (magesticsafehouse.ini ?)

1 would mean you are saved in the magestic penthouse and should be transported there on game load, 0 would mean not to. If your game was saved not in the magestic safe house 0 would be written. Or if that's impossible just write 0 at the begining of script initialization, and only 1 if person saves in magestic safehouse.

 

Once that is done, it would be easy to make more safehousen of the sort by copying then editing the file. Any interior could be made a safe house by the enterprising player.

Link to comment
Share on other sites

<.< its a Alice script, not net Scritphook.

 

Just create a new Text Document, paste the whole code in there, and rename the textfile.txt to for example majesticsavehouse.vb

 

then you got it.

Link to comment
Share on other sites

<.< its a Alice script, not net Scritphook.

 

Just create a new Text Document, paste the whole code in there, and rename the textfile.txt to for example majesticsavehouse.vb

 

then you got it.

What about the code addition so it only loads you from that "new" safehouse if you saved there?

 

Link to comment
Share on other sites

 

<.< its a Alice script, not net Scritphook.

 

Just create a new Text Document, paste the whole code in there, and rename the textfile.txt to for example majesticsavehouse.vb

 

then you got it.

It's not alice, it is in Visual Basic, it is a .net scripthook mod

 

I will have a look at the code

 

 

Imports SystemImports System.Windows.FormsImports GTAPublic Class Majestic   Inherits Script   Dim Spawncoords As New Vector3(-180.8, 580.4, 122.8)   Private Doormodel As Model = "ab_ritz_aptdoor"   Dim coordies As New Vector3(-160.0, 591.0, 119.0)   Dim coordies2 As New Vector3(-160.0, 593.0, 119.0)   Dim coordies3 As New Vector3(-155.66, 592.7, 359.42)   Dim coordies4 As New Vector3(-144.25, 6107.32, 14.3)   Public Sub New()       Interval = 500       If Player.Character.Exists = True Then           Game.FadeScreenOut(1000, True)           'Game.LoadEnvironmentNow(Spawncoords)           Player.Character.Position = Spawncoords           World.CreateVehicle("MAVERICK", coordies3)           Game.FadeScreenIn(1000)       Else       End If   End Sub   Private Sub Majestic_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick       Dim Var6 As Single = 0       SetStateOfClosestDoorOfType(Doormodel, coordies, 0, Var6)       SetStateOfClosestDoorOfType(Doormodel, coordies2, 0, Var6)   End Sub   Private Sub SetStateOfClosestDoorOfType(ByVal o As GTA.Model, ByVal coords As Vector3, ByVal locked As Boolean, ByVal angle As Single)       Native.Function.Call("SET_STATE_OF_CLOSEST_DOOR_OF_TYPE", o, coords.X, coords.Y, coords.Z, locked, angle)   End Sub   Private Sub Majestic_KeyDown(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyDown       Select Case e.Key           Case Keys.F               Dim PPos As Vector3 = Player.Character.Position               Dim LiftTop As New Vector3(-184.07, 597.44, 114.44)               Dim LiftBottom As New Vector3(-182.0, 597.4, 15.6)               If PPos.DistanceTo(LiftTop) < 4 Then                   Game.FadeScreenOut(1000, True)                   Player.Character.Position = LiftBottom                   Player.Character.Heading = 280                   'Game.LoadEnvironmentNow(LiftBottom)                   Game.FadeScreenIn(1000)               ElseIf PPos.DistanceTo(LiftBottom) < 4 Then                   Game.FadeScreenOut(1000, True)                   'Game.LoadEnvironmentNow(LiftTop)                   Player.Character.Position = LiftTop                   Player.Character.Heading = 280                   Game.FadeScreenIn(2000)               ElseIf PPos.DistanceTo(Spawncoords) < 5 Then                   Game.ShowSaveMenu()               End If       End Select   End SubEnd Class

 

I just took out a couple of lines

I'm not familiar with .vb though

Edited by lilmcnessy
Link to comment
Share on other sites

change - Game.LoadEnvironmentNow to World.LoadEnviromentNow

Ok it works now, but it always transports you to that "safehouse". Could you add some code to save state to a file: if you last pressed "F" at the save point there you arrive there when loading, if you saved somewhere else then you don't.

 

Link to comment
Share on other sites

  • 2 weeks later...

 

change - Game.LoadEnvironmentNow to World.LoadEnviromentNow

Ok it works now, but it always transports you to that "safehouse". Could you add some code to save state to a file: if you last pressed "F" at the save point there you arrive there when loading, if you saved somewhere else then you don't.

Ok Just change false to true in the ini file if you want to start from Majestic Safehouse.

 

http://www.mediafire.com/?f4nginnznzu

 

note: will not work with newest patch only for 1.0.4.0

Link to comment
Share on other sites

  • 2 years later...

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.