Quantcast

Jump to content

» «
Photo

[BETA] GTAIV .Net ScriptHook

2,947 replies to this topic
Cyron43
  • Cyron43

    "I'm so bad I kick my own ass!" (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

    A simple guy

  • 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 ass!" (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:

harpando
  • harpando

    Player Hater

  • New Members
  • Joined: 24 Aug 2015
  • Croatia

#2946

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?

 

first:

- how to change character model's outfit (randomize outfit doesn't seem to work properly and no other alternative could be found)

 

second:

- 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


whydontlose
  • whydontlose

    Player Hater

  • New Members
  • Joined: 20 Sep 2015
  • Vietnam

#2947

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?


Lord Trolldemort
  • Lord Trolldemort

    Player Hater

  • New Members
  • Joined: 22 Sep 2015
  • Australia

#2948

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.

 

//LOG////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 
2015-09-22 17:07:54 - Error during Direct3D rendering:
                      System.NullReferenceException: Object reference not set to an instance of an object.
                         at GTA.Direct3D.DrawString(String Text, Rectangle area, TextAlignment alignment, Int32 Color, Int32 FontID)
                         at GTA.Graphics.DrawText(String Text, RectangleF Area, TextAlignment Alignment, Color Color, Font Font)
                         at GTA.Graphics.DrawText(String Text, Single X, Single Y)
                         at GTA.NetHook.Draw()
                         at GTA.Direct3D.OnRender()
 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
Does anyone know a way to fix this? Please answer ASAP.
 
Thanks for reading




6 user(s) are reading this topic

0 members, 6 guests, 0 anonymous users