[BETA] GTAIV .Net ScriptHook
Posted 17 March 2015 - 10:42 PM
How to set focus to the Form after starting Form1.Show() without clicking the mouse on the Form?
Without the active focus on the form processing KeyUp event occurs.
Imports System Imports System.Drawing Imports System.Windows.Forms Imports GTA Public Class GTA_Forms Inherits Script Public Sub New() Wait(1000) End Sub Private Sub Main_KeyUp(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyUp If e.Key = Keys.D1 Then Dim Form1 As New Form1_Window Form1.Show() End If End Sub End Class Public Class Form1_Window Inherits GTA.Forms.Form Public Sub New() 'Me.KeyPreview = True 'Not work End Sub Private Sub Main_KeyUp(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyUp If e.Key = Keys.D2 Then Me.Close End Sub End Class
Posted 03 April 2015 - 06:35 PM Edited by Stefanex, 03 April 2015 - 06:40 PM.
I have a problem:
Posted 24 August 2015 - 12:38 AM
i know i'm late to the party, but i have several questions to ask hazardx about scripthook?
- how to change character model's outfit (randomize outfit doesn't seem to work properly and no other alternative could be found)
- how to scale down marker (or blip) - the only way i found to add a marker is by blip and when i change it's scale, only the minimap marker is affected, not the world marker
and also a (possible) bug i found: when i set the interval to negative number, ticks don't stop triggering
Posted 20 September 2015 - 01:24 PM
sr, im bad in english
but i have a question
how to use C# to know my character is aiming?
Posted 22 September 2015 - 11:57 AM
I got a problem?
I seem to have an error with some scripts. I have been trying to fix it for ages, to no avail.
I have installed many scripts, the bank account one, weapon weight, pickups e.t.c. The problem is, for these scripts the text that is supposed to appear, is not working.
The bank account script, is supposed to bring about an interface, out of text. But it doesn't appear. The functions work, but the text is invisible. I found the problem in the log.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users