Quantcast

Jump to content

» «
Photo

[BETA] GTAIV .Net ScriptHook

2,962 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

iriedreadlock23
  • iriedreadlock23

    Dr. Frankenstein

  • Members
  • Joined: 14 Jan 2009

#2949

Posted 27 March 2016 - 05:34 PM

This error happens after calling native functions for 6,7 hours, for example DISPLAY_TEXT_WITH_LITERAL_STRING. It seems that issue is in GetStringPointer function in ScripthookDotNet code. After reloading scripts all is back to normal.

                System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
                         at System.Collections.Generic.List`1.set_Capacity(Int32 value)
                         at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
                         at System.Collections.Generic.List`1.Add(T item)
                         at GTA.Native.Function.GetStringPointer(String input)
                         at GTA.Native.Parameter.op_Implicit(String source)

jpm1
  • jpm1

    Vice city citizen

  • Members
  • Joined: 26 Sep 2005
  • European-Union

#2950

Posted 29 September 2016 - 03:23 PM

is there a command to freeze the weather


ChinaLino
  • ChinaLino

    Hello.

  • Members
  • Joined: 26 Nov 2016
  • Germany

#2951

Posted 30 November 2016 - 07:49 PM

How about a scripthook for GTA IV 1.0.8.0 :D

  • jpm1 and bestia like this

Hullian111
  • Hullian111

    Humberside County

  • Members
  • Joined: 15 Feb 2016
  • United-Kingdom

#2952

Posted 06 December 2016 - 05:48 PM

Scripthook isn't working, I've reinstalled it wrong, or TrafficFlow isn't working, because...well...it isn't working.


ChinaLino
  • ChinaLino

    Hello.

  • Members
  • Joined: 26 Nov 2016
  • Germany

#2953

Posted 11 December 2016 - 01:38 AM

Scripthook isn't working, I've reinstalled it wrong, or TrafficFlow isn't working, because...well...it isn't working.

It's the new patch, hopefully enventually he will release a new version of Scripthook for the current patch.


65536
  • 65536

    Prankster

  • Members
  • Joined: 07 Sep 2012
  • Bulgaria

#2954

Posted 11 December 2016 - 07:56 AM Edited by 65536, 11 December 2016 - 09:08 AM.

 

Scripthook isn't working, I've reinstalled it wrong, or TrafficFlow isn't working, because...well...it isn't working.

It's the new patch, hopefully eventually he will release a new version of ScriptHook for the current patch.

 

 

I don't know, but it's better if someone send a message to @AlexanderBlade about the new GTA IV's patch about if he can make a new normal ScriptHook for IV / EFLC (and might also Hazards' ScriptHook .NET) from scratch which to replace their outdated versions since:

 

1. This ScriptHook .NET (and the original ScriptHook too as well) still have various nasty bugs, and also their authors wasn't active on GTAForums for more than an year here now;

2. Also, seems the normal ScriptHook's author @aru most likely doesn't allow anyone to back engineering his partially broken (and still BETA) plugin without anyone ask him first, which means without able to contact him for permission, we're in fact stuck! Unfortunately now appears - cannot contact current ScriptHook's author @aru (he isn't active anymore and he might also NO LONGER WORKING on this anymore) - NO ONE from the currently active modders here CAN UPDATE this to current patch without getting author's permission (which sadly appears impossible now since @aru is completely vanished)...

 

I think beside the variant IV's modding community to ask @AlexanderBlade about he to make a new ScriptHook for GTA IV 1.0.8.0 / GTA EFLC 1.1.3.0, we'll will not be able to use any script mods anymore for these games.  :cry:


nkjellman
  • nkjellman

    OG

  • Members
  • Joined: 28 Aug 2008
  • United-States

#2955

Posted 11 December 2016 - 10:03 AM

 

 

Scripthook isn't working, I've reinstalled it wrong, or TrafficFlow isn't working, because...well...it isn't working.

It's the new patch, hopefully eventually he will release a new version of ScriptHook for the current patch.

 

 

I don't know, but it's better if someone send a message to @AlexanderBlade about the new GTA IV's patch about if he can make a new normal ScriptHook for IV / EFLC (and might also Hazards' ScriptHook .NET) from scratch which to replace their outdated versions since:

 

1. This ScriptHook .NET (and the original ScriptHook too as well) still have various nasty bugs, and also their authors wasn't active on GTAForums for more than an year here now;

2. Also, seems the normal ScriptHook's author @aru most likely doesn't allow anyone to back engineering his partially broken (and still BETA) plugin without anyone ask him first, which means without able to contact him for permission, we're in fact stuck! Unfortunately now appears - cannot contact current ScriptHook's author @aru (he isn't active anymore and he might also NO LONGER WORKING on this anymore) - NO ONE from the currently active modders here CAN UPDATE this to current patch without getting author's permission (which sadly appears impossible now since @aru is completely vanished)...

 

I think beside the variant IV's modding community to ask @AlexanderBlade about he to make a new ScriptHook for GTA IV 1.0.8.0 / GTA EFLC 1.1.3.0, we'll will not be able to use any script mods anymore for these games.  :cry:

 

Our best bet for now is to do what we do on GTA San Andreas. Make a downgrader. That is till someone makes a new Script Hook.


AcD08
  • AcD08

    Player Hater

  • New Members
  • Joined: 22 Dec 2016
  • Indonesia

#2956

Posted 22 December 2016 - 06:47 AM

Then, No scripthook for 1.0.8.0 T_T


Nicolas Crazy
  • Nicolas Crazy

    Crackhead

  • Members
  • Joined: 17 Dec 2015
  • Brazil

#2957

Posted 18 January 2017 - 02:52 AM

plss update it for 1.0.8.0 and 1.1.3.0

  • jpm1 likes this

asilas
  • asilas

    nigga

  • Members
  • Joined: 16 May 2015
  • Lithuania

#2958

Posted 11 March 2017 - 03:19 PM

f*ck license just update scripthook 

  • nkjellman and 65536 like this

GTAGAMERVIDEOS
  • GTAGAMERVIDEOS

    GTA MASTER

  • Members
  • Joined: 29 Jul 2014
  • United-States

#2959

Posted 24 April 2017 - 07:28 AM

CAN YOU MOD IT TO WORK ON PATCH 1.8 


SilverRST
  • SilverRST

    Boss

  • Members
  • Joined: 25 Mar 2013
  • None

#2960

Posted 24 April 2017 - 03:01 PM

CAN YOU MOD IT TO WORK ON PATCH 1.8 

THE CREATOR OF GTAIV SCRIPTHOOK HASN'T BEEN ACTIVE TO UPDATE IT FOR PATCH 1.8


Zolika1351
  • Zolika1351

    Ladies, hide your titties!

  • Members
  • Joined: 16 Jun 2014
  • Hungary

#2961

Posted 03 August 2017 - 03:30 PM

The C++ ScriptHook was (kind of) updated (by that I mean the ScriptHook got hooked into to enable 1.0.8.0 functionality), so can't someone do the same thing here? 


FeelAlone
  • FeelAlone

    Player Hater

  • Members
  • Joined: 05 Sep 2017
  • Thailand

#2962

Posted 01 October 2017 - 11:03 AM

who can tell team make new script hook please.

Please some people and who people can fix and how long to update scripthook.dll+scripthook.net.dll and dsound.dll to come for  1.0.8.0/1.1.3.0? for All old mod on game gta iv/eflc v.1.0.8.0/1.1.3.0 please.


Rifelecnak
  • Rifelecnak

    Player Hater

  • New Members
  • Joined: A week ago
  • Bahamas

#2963

Posted A week ago Edited by Rifelecnak, A week ago.

I just registered, some minutes ago, to comment on this... Because

I just installed GTA IV Complete Edition (STEAM) and updated to last game versions gta iv/eflc v.1.0.8.0/1.1.3.0 and

When I unpacked my mod packages backup to play and enjoy (like some years ago), then I figure out, ScripHook for IV is broken on this version (I'm running Windows 10) so some minutes ago I started some research...

I see now, "this crucial" tool, is abandoned by original author, who published the code, then another author vanished without notice at the end of 2013, but that is not the worse thing (because people evolve or change hobbies and interests)... Ohh my surprise comes when I realized that ScripHook is DEAD WTF... oh for Christ Shake, a key important tool on GTA IV modding killed because it seems author "patterns of coding" are a totally mess.. who don't like so it is difficult to make community-driven updates...

Now a lot of people on GTA IV modding would be orphans, or forced to stay on old version (maybe with conflicts on Windows 10 newest releases)

How this can be happening, a massive community, from years, brotherhood of great and powerful scripting and immersive mods like LCPDFR among others, a crucial framework base of modding development and execution ScripHook is badly programmed, badly development poorly-depending of "one man" who dissapear years ago... This is a shame...

Now with GTA V major developers will not interested on build from scratch a new ScripHook (Thanks to people who don't release work when they retire, or without proper statement before vanished.

I hope someone contact author or at least we could found a solution... GTA IV is a lot of ways better than GTA V... and there are beautiful scripting mods.

I am very angry now... retro gaming or modding is about freedom, it is essential legacy and open source, in some ways...

f*ckin' amnesia and Tábula Rasa of purges like this.

I am not and expert on GTA IV scripting, but (for people who knows about this stuff? What we could do from now on? To update and maintain this :'(
  • 65536 likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users