Quantcast

Jump to content

» «
Photo

[BETA] GTAIV .Net ScriptHook

2,944 replies to this topic
Cyron43
  • Cyron43

    "I'm so bad I kick my own a**!" (GTA IV quote)

  • Members
  • Joined: 14 Apr 2013
  • Germany

#2941

Posted 23 December 2014 - 01:33 PM

Will you make a .net scripthook for GTA V as well?

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#2942

Posted 24 December 2014 - 11:24 AM

If they do ....it would be AWESOME

Cyron43
  • Cyron43

    "I'm so bad I kick my own a**!" (GTA IV quote)

  • Members
  • Joined: 14 Apr 2013
  • Germany

#2943

Posted 17 January 2015 - 08:46 PM

Hmm no reply yet. I consider that as a bad sign. :panic:


vorotkov
  • vorotkov

    Player Hater

  • New Members
  • Joined: 17 Mar 2015
  • None

#2944

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

Stefanex
  • Stefanex

    GTA fanboy

  • Members
  • Joined: 11 Jul 2014
  • Romania

#2945

Posted 03 April 2015 - 06:35 PM Edited by Stefanex, 03 April 2015 - 06:40 PM.

I have a problem:

2015-04-03 21:15:29 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.0.4 with C++ Hook version 0.4.0)
 
2015-04-03 21:15:29 - WARNING: Your C++ ScriptHook version 0.4.0 and GTA IV version 1.0.0.4 are NOT known to be compatible! Use C++ ScriptHook version 0.5.1 or the newest version of the game AND the C++ ScriptHook instead!
2015-04-03 21:16:53 - Direct3D device created!
 
2015-04-03 21:16:54 - SEARCHING FOR SCRIPTS...
2015-04-03 21:16:54 - Loading scripts in Assembly 'scripts\Bicycle.net.dll' ...
2015-04-03 21:16:55 -  ...found script 'Bicycle'!
2015-04-03 21:16:55 - Loading scripts in Assembly 'scripts\cameracontrol.net.dll' ...
2015-04-03 21:16:55 -  ...found script 'cameras.cameraScript'!
2015-04-03 21:16:55 - Loading scripts in Assembly 'scripts\Fireworks.net.dll' ...
2015-04-03 21:16:55 -  ...found script 'Fireworks'!
2015-04-03 21:16:55 - Loading scripts in Assembly 'scripts\JulioNIB.Scripts.net.dll' ...
2015-04-03 21:16:55 -  ...found script 'JulioNIBScriptsMenu'!
2015-04-03 21:16:55 - Loading scripts in Assembly 'scripts\Selfie.net.dll' ...
2015-04-03 21:16:55 -  ...found script 'Selfie'!
2015-04-03 21:16:55 - Loading scripts in Assembly 'scripts\SkateIV.net.dll' ...
2015-04-03 21:16:55 -  ...found script 'SkateIV'!
2015-04-03 21:16:55 - Loading scripts in Assembly 'scripts\Umbrella.net.dll' ...
2015-04-03 21:16:55 -  ...found script 'umbrellaCS.umbrella'!
2015-04-03 21:16:55 -  ...found script 'umbrellaCS.ManualFuncton'!
2015-04-03 21:16:55 - Loading dynamic scriptfile 'scripts\Arrest.CS' ...
2015-04-03 21:16:58 -  ...found script 'Arrest.Arrest'!
2015-04-03 21:16:58 - Loading dynamic scriptfile 'scripts\BasicNeeds.cs' ...
2015-04-03 21:16:58 -  ...found script 'Basic_Needs.Basic_Needs'!
2015-04-03 21:16:58 - Loading dynamic scriptfile 'scripts\d_Crawl.CS' ...
2015-04-03 21:16:58 -  ...found script 'd_Crawl.d_Crawl'!
2015-04-03 21:16:58 - Loading dynamic scriptfile 'scripts\LSD.CS' ...
2015-04-03 21:16:59 -  ...found script 'LSD.LSD'!
2015-04-03 21:16:59 - Loading dynamic scriptfile 'scripts\PickupProps.CS' ...
2015-04-03 21:16:59 -  ...found script 'PickupProps.PickupProps'!
2015-04-03 21:16:59 - Loading dynamic scriptfile 'scripts\Smoking.cs' ...
2015-04-03 21:16:59 -  ...found script 'TestScriptCS.Smoking'!
2015-04-03 21:16:59 - Loading dynamic scriptfile 'scripts\TEMP.CS' ...
2015-04-03 21:17:00 -  ...found script 'Temp.Temp'!
2015-04-03 21:17:00 - Loading dynamic scriptfile 'scripts\Trunk.cs' ...
2015-04-03 21:17:00 -  ...found script 'Trunk.Trunk'!
2015-04-03 21:17:00 - DONE! 16 valid scripts found!
 
2015-04-03 21:17:00 - STARTING SCRIPTS...
2015-04-03 21:17:00 - INFO: Phone number checks are not available!
2015-04-03 21:17:00 -  ...successfully started script 'Temp.Temp'!
2015-04-03 21:17:00 -  ...successfully started script 'Arrest.Arrest'!
2015-04-03 21:17:00 -  ...successfully started script 'umbrellaCS.ManualFuncton'!
2015-04-03 21:17:00 -  ...successfully started script 'SkateIV'!
2015-04-03 21:17:00 -  ...successfully started script 'Selfie'!
2015-04-03 21:17:00 -  ...successfully started script 'Fireworks'!
2015-04-03 21:17:00 -  ...successfully started script 'cameras.cameraScript'!
2015-04-03 21:17:01 -  ...successfully started script 'Trunk.Trunk'!
2015-04-03 21:17:01 -  ...successfully started script 'PickupProps.PickupProps'!
2015-04-03 21:17:01 -  ...successfully started script 'LSD.LSD'!
2015-04-03 21:17:01 -  ...successfully started script 'd_Crawl.d_Crawl'!
2015-04-03 21:17:01 -  ...successfully started script 'Basic_Needs.Basic_Needs'!
2015-04-03 21:17:02 - Error during NetHook.Tick:
                      System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
                         at Scripting.NativeContext2.Invoke(SByte* name, NativeContext2* cxt)
                         at GTA.Native.Function.BaseCall(String Name, Parameter[] Arguments)
                         at GTA.Native.Function.Call(String Name, Parameter[] Arguments)
                         at GTA.Native.Template.Invoke()
                         at GTA.ScriptDomain.RemoteEvent(RemoteEventArgs ev)
                         at GTA.ScriptDomain.ProcessRemoteEvents()
                         at GTA.ScriptDomain.Tick()
                         at GTA.NetHook.Tick()
can you help me, please????? :panic:  :panic:  :panic:




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users