Post mod/code requests in the Mod Requests topic.
Post mod releases in the Mod Showroom.
Read the Modding Rules BEFORE posting!
Free mod hosting from GTANet, simply login with your GTAForums account details
GTANet's modding wiki
Visual studio 2010: script toggle on/off
Posted 18 August 2013 - 06:11 PM
toggle on / off with the same button.
As you see in the description it sais:
Press insert to enable slowmotion mode.
Press delete to disable slowmotion mode.
I want to edit it with visual studio 2010 so i dont need to do:
but enable it with middle mouse button and disabling it when pressing middle mouse button again.
Posted 20 August 2013 - 06:14 PM
' ### Press MiddleMouseButton to change TIME_SCALE! ###
' Original Script by : TheGrim
' Proper Version by : Skorpro
Public Class SlowMotionScript
Private onOff As Boolean = True
Public Sub New()
Interval = 250
Private Sub TimeScript_KeyDown(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyDown
If e.Key = Keys.MButton AndAlso onOff = True Then
Game.DisplayText("Slowmotion mode Enabled")
onOff = False
ElseIf e.Key = Keys.MButton AndAlso onOff = False Then
Game.DisplayText("Slowmotion mode Disabled")
onOff = True
- Original VB script by TheGrim
- C++ is my language! I have NO experience with VB... so maybe there is a smarter way to do that Anyway... it works
Posted 20 August 2013 - 06:55 PM
Edit: does not seem to work, but i appreciate youre help
EDIT 2: Suddenly i tried againg and it works thanks!
Edited by muro808, 21 August 2013 - 03:00 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users