|
 |
|
|
|
|
|
GTA Modification Forums
Magestic Safehouse mod no longer works
 |
|
 |
| |
lilmcnessy  |
Posted: Wednesday, Nov 4 2009, 05:10
|
lil - mic - ness - ee

Group: Members
Joined: Oct 29, 2008


|
| QUOTE (KingBulleT. 8747 @ Nov 3 2009, 23:32) | <.< 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 | CODE | Imports System Imports System.Windows.Forms Imports GTA
Public 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 Sub
End Class |
I just took out a couple of lines I'm not familiar with .vb though This post has been edited by lilmcnessy on Wednesday, Nov 4 2009, 05:39
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|