Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Alexander Blade

Script Hook V

Recommended Posts

LeeC2202
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 LeeC2202

Share this post


Link to post
Share on other sites
K-ManRacer
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 

Share this post


Link to post
Share on other sites
K-ManRacer

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 

Share this post


Link to post
Share on other sites
LeeC2202
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.

Share this post


Link to post
Share on other sites
n8gamez1

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

Share this post


Link to post
Share on other sites
suzuki777

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 ");
    }
}

Share this post


Link to post
Share on other sites
LeeC2202
14 hours ago, suzuki777 said:

I did everything according to the instructions.

You're writing a C# ScriptHookVDotNet script, you don't have ScriptHookVDotNet installed.

 

Go here https://www.gta5-mods.com/tools/scripthookv-net

 

Read all the instructions in the Description on that page and install whatever else you need to install, along with the main ScriptHookVDotNet files.

Edited by LeeC2202

Share this post


Link to post
Share on other sites
kagikn

Ah sh*t, here we go again. New GTA V update has came.

3WSbyS9.jpg

 

And time to lock this thread.

Share this post


Link to post
Share on other sites
actuallypaco

could you update? plz

Share this post


Link to post
Share on other sites
George Costanza

You all know the drill already.

Share this post


Link to post
Share on other sites
George Costanza

Updated

Share this post


Link to post
Share on other sites
krkarr

my game is crashing when entering a car & i have just updated it (gta5.exe v 1.0.678.1)

https://i.imgur.com/HcPKrvQ.png

Edited by krkarr

Share this post


Link to post
Share on other sites
_CP_
6 hours ago, krkarr said:

v 1.0.678.1

Are you serious? Buy the game.

Share this post


Link to post
Share on other sites
krkarr

i did

Share this post


Link to post
Share on other sites
_CP_

Then why you're using 1.0.678.1 patch?

Share this post


Link to post
Share on other sites
krkarr

i have now patched it with 1.1011.1 so it works now

Share this post


Link to post
Share on other sites
MickaWSG
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:

 

Share this post


Link to post
Share on other sites
ramburgler

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

Share this post


Link to post
Share on other sites
MickaWSG
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 !

Share this post


Link to post
Share on other sites
ramburgler

ok, i am dumb - i had other mod in there that caused the crash, scipthook is good.

Share this post


Link to post
Share on other sites
Witcher151

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. 

 

 

Share this post


Link to post
Share on other sites
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?
 

Share this post


Link to post
Share on other sites
EmreCT

Hello man, update the app to update the game.

Share this post


Link to post
Share on other sites
I3lackI3eard

Still can't download anything from the scripthook website.
 

Share this post


Link to post
Share on other sites
EmreCT
On 3/7/2019 at 4:13 PM, EmreCT said:

Hello man, update the app to update the game.

+

Share this post


Link to post
Share on other sites
LeeC2202
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 LeeC2202

Share this post


Link to post
Share on other sites
sauce_boy3

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

Share this post


Link to post
Share on other sites
LeeC2202
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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

×
×
  • Create New...

Important Information

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