Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

Script Hook V


Alexander Blade
 Share

Recommended Posts

11 minutes ago, K-ManRacer said:

my game still crashes when loading even if i deleted the whole mods folder, so does that mean that is might be from a script folder, 

am i in the same situation as @cappuccino ?

Very possibly. Always check with a clean game, renaming the mods and scripts folders is good enough to stop them loading. If you do that and it still crashes, remove any modded files from the main game folder other than the 3 I highlighted in my earlier post. If your game runs fine clean, then you know for sure that the problem lies elsewhere.

 

If it crashes when you put the mods folder back, the problem's in there, if not, it's probably a script mod. So then add the ones back to the main folder first, then do the scripts folder.

 

Edit: Just noticed you mention LSPDFR, that uses RPH and I refuse to have that on my machine, so I can't help you with that side of things I am afraid. I know RPH dumps files all over the main folder, plus in other folders as well, so that's going to take some careful cleaning up.

Edited by Guest
Link to comment
Share on other sites

1 minute ago, LeeC2202 said:

Very possibly. Always check with a clean game, renaming the mods and scripts folders is good enough to stop them loading. If you do that and it still crashes, remove any modded files from the main game folder other than the 3 I highlighted in my earlier post. If your game runs fine clean, then you know for sure that the problem lies elsewhere.

 

If it crashes when you put the mods folder back, the problem's in there, if not, it's probably a script mod. So then add the ones back to the main folder first, then do the scripts folder.

thank you for your help, muchly appreciated, thank you 

Link to comment
Share on other sites

so i found out what causes my game to crash which was EnableMPCars but now two new errors poped up which is 

48a95a3ace218dbe8ddbb9d1e51e65ae.png5b4a257a135297fa9d3fff076a624da0.png 

 

I never saw them 

Link to comment
Share on other sites

31 minutes ago, K-ManRacer said:

so i found out what causes my game to crash which was EnableMPCars but now two new errors poped up which is 

48a95a3ace218dbe8ddbb9d1e51e65ae.png5b4a257a135297fa9d3fff076a624da0.png 

 

I never saw them 

That means you have more problems. If rebooting doesn't help, then you will need to verify your files and start from clean again.

 

I used to regularly get a corrupted file after an update. Removing dinput8.dll and doing a verify used to download a 2GB update and then I could put everything back again. I could never work out what had caused the problem but it used to happen every time.

Link to comment
Share on other sites

  • 3 weeks later...

Thanks for all the love you have for GTAV. I've been modding since 1998 and know your contributions well. ON SCRIPTHOOKV I get errorrs randomly when coding Id: 27,  or 28, or 29.

I have no reference to the errors. Is there some error code list? Looked everywhere for one. No luck. Tried the Sdk but no help. N8Gamez

Link to comment
Share on other sites

HELP!!!

1) Scripts do not work. I did everything according to the instructions. I wrote a simple script that when you press any key in the game, a message pops up. Did everything like on it
  1 video link to the video (https://coursehunters.net/course/itvdn-csharp-gta5).

I go into the game, the game does not display this script.
The game was bought officially through steam.

2) Windows 10 version.
3) Version of the game 1.0.1604.0
4) asiloader.log
LOG:
// GTA V ASI LOADER (build May  2 2015)
//     (C) Alexander Blade 2015
LIB: "C:\WINDOWS\system32\dinput8.dll" => 00007FF99FC40000
API: "DirectInput8Create" => 00007FF99FC49D40
API: "DllCanUnloadNow" => 00007FF99FC59BD0
API: "DllGetClassObject" => 00007FF99FC59CA0
API: "DllRegisterServer" => 00007FF99FC63990
API: "DllUnregisterServer" => 00007FF99FC63C00
LOADER: Loading *.asi plugins
ASI: Loading "E:\Games\SteamLibrary\steamapps\common\Grand Theft Auto V\NativeTrainer.asi"
     "NativeTrainer.asi" => 00007FF998B10000
LOADER: Finished loading *.asi plugins
-----------------------------------------------------------------------------------------

ScriptHookV.log
LOG:
// GTA V SCRIPT HOOK (build Dec 18 2018, v1.0.1604.0)
//     (C) Alexander Blade 2015-2018
[13:52:24] INIT: Started
[13:52:24] INIT: Success, game version is VER_1_0_1604_0_STEAM
[13:52:24] INIT: Registering script 'NativeTrainer.asi' (0x00007FF998B1A3C0)
[13:52:38] INIT: Pool 1 extended
[13:52:38] INIT: Pool 2 extended
[13:52:38] INIT: Pool 3 extended
[13:52:38] INIT: Pool 4 extended
[13:52:44] INIT: GtaThread collection size 189
[13:52:44] INIT: wnd proc 0x00000000FFFF09A1
[13:52:44] INIT: IDXGISwapChain 0x00007FF9AEEFEC80 (0x00007FF9AEE95070)
[13:52:44] INIT: IDXGISwapChain set
[13:52:44] INIT: DX init started
[13:52:44] INIT: DX feature level B000
[13:52:44] INIT: DX init succeeded
[13:54:13] UNINIT: Unregistering script 'NativeTrainer.asi'

6)I have installed Visual Studio17

7) my code that I put in the folder "Scripts" 
code:

using GTA;
using System.Windows.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class Mod11 : Script {
    public Mod11() {
        KeyDown += My_KeyDown;
    }

    private void My_KeyDown(object sender, KeyEventArgs e) {
        UI.Notify(" Solomon ");
    }
}

Link to comment
Share on other sites

  • 4 weeks later...
Igor Bogdanoff

You all know the drill already.

  • Like 3
Link to comment
Share on other sites

Igor Bogdanoff

Updated

Link to comment
Share on other sites

6 hours ago, krkarr said:

v 1.0.678.1

Are you serious? Buy the game.

HHnErXC.png


Link to comment
Share on other sites

Then why you're using 1.0.678.1 patch?

HHnErXC.png


Link to comment
Share on other sites

I have a problem when I put the ScriptHook V in my GTA root folder. 
When I start my game, and I click on the story mode, the game loads and crash saying "GTA to quit unexpectedly ...." 
Could someone help me? please

 


1 minute ago, MickaWSG said:

 

Link to comment
Share on other sites

8 hours ago, ramburgler said:

Does not work on non-steam version, game crashes just before loading is complete. Used to work fine before.

I have the same problem !

Link to comment
Share on other sites

Hello, I'm having an issue playing the regular Story Mode either through RAGE or through the GTAV.exe. RAGE and LSPDFR all work just fine. I'd just like to play Story Mode by itself with mods. During the mission, "Franklin and Lamar," (that's where my save currently is) while I'm driving with Lamar to repo the bike, my game CTD and throws this code in the Launcher:

 

[2019-02-22 21:21:16.373] [DISPLAY] Using DPI 96
[2019-02-22 21:21:16.428] [DISPLAY] File version 10000:6440001 (for D:\Steam\steamapps\common\Grand Theft Auto V\GTA5.exe)
[2019-02-22 21:21:16.471] [DISPLAY] File version 10002:40001 (for C:\Program Files\Rockstar Games\Social Club\socialclub.dll)
[2019-02-22 21:21:16.507] [DISPLAY] File version 10000:6440000 (for D:\Steam\steamapps\common\Grand Theft Auto V\GTAVLauncher.exe)
[2019-02-22 21:21:16.519] [DISPLAY] Version: |1.0.1604.1|1.2.4.1|1.0.1604.0|FSP
[2019-02-22 21:21:16.982] [DISPLAY] OS version: Major: 6, Minor: 2, Build: 9200, Platform: 2
[2019-02-22 21:21:17.255] [DISPLAY] Steam initialized successfully
[2019-02-22 21:21:17.258] [DISPLAY]     Steam id: 76561198184573094
[2019-02-22 21:21:17.262] [DISPLAY]     Steam offline: FALSE
[2019-02-22 21:21:17.267] [DISPLAY]     Steam persona: Robbie T.
[2019-02-22 21:21:17.293] [DISPLAY] Social Club initializing...
[2019-02-22 21:21:17.872] [DISPLAY] Attempting to create device...
[2019-02-22 21:21:17.875] [DISPLAY] Attempting to initialise DX9 COM object...
[2019-02-22 21:21:17.895] [DISPLAY] Window size: 690 x 496
[2019-02-22 21:21:17.961] [DISPLAY] Successfully created DX Device!
[2019-02-22 21:21:19.952] [DISPLAY] Geo: US
[2019-02-22 21:21:25.044] [DISPLAY] Launching game...
[2019-02-22 21:21:25.048] [DISPLAY] (path: D:\Steam\steamapps\common\Grand Theft Auto V\GTA5.exe cmdline: "D:\Steam\steamapps\common\Grand Theft Auto V\GTA5.exe")
[2019-02-22 21:26:29.577] [ ERROR ] GameComm: ReadFile failed.
[2019-02-22 21:26:29.811] [DISPLAY] Game exited with code 0xc0000005
[2019-02-22 21:26:29.811] [ ERROR ] Unable to stat out-file!
[2019-02-22 21:26:29.813] [ ERROR ] ************************************************************************
[2019-02-22 21:26:29.813] [ ERROR ] * Setting error condition
[2019-02-22 21:26:29.813] [ ERROR ] * Category:  1 (ERROR_CATEGORY_LAUNCHER)
[2019-02-22 21:26:29.813] [ ERROR ] * Code:     107 (LAUNCHER_ERR_GAME_CRASHED)
[2019-02-22 21:26:29.813] [ ERROR ] * Extra:     
[2019-02-22 21:26:29.813] [ ERROR ] * Localised: Launcher error.  Code: 107 
[2019-02-22 21:26:29.813] [ ERROR ] ************************************************************************
[2019-02-22 21:26:29.815] [ ERROR ] Unable to read out-file!
[2019-02-22 21:26:29.817] [ ERROR ] ************************************************************************
[2019-02-22 21:26:29.817] [ ERROR ] * Setting error condition
[2019-02-22 21:26:29.817] [ ERROR ] * Category:  5 (ERROR_CATEGORY_EXIT_CODE)
[2019-02-22 21:26:29.817] [ ERROR ] * Code:     -1073741819 (c0000005)
[2019-02-22 21:26:29.817] [ ERROR ] * Extra:     
[2019-02-22 21:26:29.817] [ ERROR ] * Localised: Grand Theft Auto V exited unexpectedly.  

Please click Retry below to enter the game again, or click Safe Mode to launch the game with reduced graphics settings.  

If you continue to have problems playing the game, please contact Rockstar Games Customer Service at http://support.rockstargames.com
[2019-02-22 21:26:29.817] [ ERROR ] ************************************************************************
[2019-02-22 21:26:29.820] [ ERROR ] Exit code 0xc0000005 indicates a game crash (STATUS_ACCESS_VIOLATION)
[2019-02-22 21:26:29.835] [ ERROR ] Unable to clear in-file and out-file!
[2019-02-22 21:26:34.966] [DISPLAY] Uninitializing.

When I look at the "Event Viewer" log, it gives the following:
 

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name=".NET Runtime" /> 
  <EventID Qualifiers="0">1026</EventID> 
  <Level>2</Level> 
  <Task>0</Task> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2019-02-23T04:26:28.563808000Z" /> 
  <EventRecordID>3901</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>DESKTOP-HGKU264</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>Application: GTA5.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: exception code 
  c0000005, exception address 00007FF75B5D9226 Stack:</Data> 
  </EventData>
  </Event>

Windows, all drivers, .NET Framework, GTAV, and ScriptHookV are all up-to-date. Where do I go from here? There doesn't seem to be a recent and reliable fix that I can find. 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
I3lackI3eard

Can't download from the author's site.
Everytime I click the download link, I get thrown to the Blog page.
Tried 3 different browsers.
Any suggestions?
 

Link to comment
Share on other sites

  • 2 weeks later...
On 3/7/2019 at 1:13 PM, EmreCT said:

Hello man, update the app to update the game.

Nothing needs updating as far as I know, the latest game version is 1604.1, the latest ScriptHookV version is 1604.1

 

The only time ScriptHookV ever needs updating, is when those numbers don't match. If your game doesn't work when ScriptHookV is installed, then something else in your game is broken.

 

1) Rename your mods folder,

2) Rename your scripts folder,

3) Remove ALL mod-files from the main game folder apart from ScriptHookV.dll and dinput8.dll

4) If your game still doesn't run, post your SHV log file.

Edited by Guest
Link to comment
Share on other sites

how do you use this in logitech pro keyboard because every time i try to click the number lock it won't let me navigate and when i try to navigate it will just switch to different weapons and i tried is it because i download it wrong or i just put the files the files in the wrong place i read the read me and tried to navigate through but it would not let me do anything but open the mod menu

Link to comment
Share on other sites

47 minutes ago, sauce_boy3 said:

how do you use this in logitech pro keyboard because every time i try to click the number lock it won't let me navigate and when i try to navigate it will just switch to different weapons and i tried is it because i download it wrong or i just put the files the files in the wrong place i read the read me and tried to navigate through but it would not let me do anything but open the mod menu

To be honest, you're probably better off switching to a different trainer, if you're using the one that came with ScriptHookV. As far as I know, the one included with ScriptHookV was more of a sample mod, to show other modders how the API and Functions worked.

 

I would personally recommend Simple Trainer V but there's also Enhanced Native Trainer and Menyoo to try. All of those are regularly updated and are more likely to be compatible with your keyboard. If they don't work, then you can probably find the authors of them on the forums here at some point and they might be able to help you further.

Link to comment
Share on other sites

5 hours ago, markswe said:

we Need an new version this one is outdated😕

scripthook is not outdated

Link to comment
Share on other sites

Not? :O wierd

 

 

Coz i get fatal error even when i got the newest update

Edited by markswe
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 3 Users Currently Viewing
    0 members, 0 Anonymous, 3 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.