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

Great work man, much appreciated.

I have a question about timecyc editing, I remember in GTAIV I used a script called "TimecycReloader.asi" to edit the timecycle files in real time while playing the game, is that possible in V?

Link to comment
Share on other sites

 

Use dsound.dll based asiloader instead of dinput8.dll one

http://gtaforums.com/topic/788343-script-hook-v/?p=1067500106

 

 

Phraggah

Try only with x360ce and asiloader's dinput8.dll , without asi , will it crash ?

 

Still crashes without asi (x360ce, ScriptHookV.dll, and dinput8.dll installed).

 

I also tried it without ScriptHookV installed, so it's just dinput8 and x360ce and it still crashes.

 

Looks like there was no log generated for either the asiloader or script hook.

 

 

Worked like a charm, thanks! Maybe a link to this loader should be added to the OP?

Link to comment
Share on other sites

Alexander Blade, i have a problem with the latest ScriptHook v1.0.573.1a - 20 Dec 2015. I can no longer load my map mod "Home of lifeinvader's CEO". This map has arround 1885 objects. It used to load successfully without error prior to the latest R* and scripthook update. I was able to load maps with 2000+ objects but not anymore. According to Guadmaz who created Map-Editor, he said the issue is with the prop limit. The new prop limit is somewhere at 1790. Is there anyway to increase that again back to 2020 like it used to be?

Link to comment
Share on other sites

Alexander Blade
FranClint

The limit is the same as in previous patch , however R* use more objects now . I will look into this .

 

CraigOz

It's possible but it won't be two lines of code like for IV .

Link to comment
Share on other sites

Crashing after I put the file dsound.dll or dinput8.dll :( Scripthook.dll probably works fine, but trainer did not appear when I click F3 / F4 :/ Why? Please help :/ Thx.

Link to comment
Share on other sites

Alexander Blade

Read first post and post the logs when it's crashing .

Link to comment
Share on other sites

1. what exactly isn't working - When I start the game and click on play story mode, after 20 sec. it said: Game Stop Working... Checking Windows Compatibility...


2. what Windows version do you have - Windows 10 Pro 64-bit


3. what game version do you have (look into the GTA5.exe properties) - 1.0.573.1


4. provide contents of your asiloader.log and ScriptHookV.log which should be located in the same dir as GTA5.exe - http://www.megafileupload.com/il86/asiloader.log


+ http://www.megafileupload.com/il87/ScriptHookV.log


Edited by Jealous
Link to comment
Share on other sites

Hi! I want to try to translate the trainer to spanish and reskin the trainer
I would like to upload the modification to es.gta5-mods.com
I haven't a account of github
sorry my bad english im spanish

 

Edited by RosGar
Link to comment
Share on other sites

@Alexander Blade

 

Is it even possible make a script to add a custom vehicle to act as a taxi cab? Popgroups/vehiclemodelsets files is not enough.

Edited by _CP_

HHnErXC.png


Link to comment
Share on other sites

Alexander Blade

Taxis are referenced in a lot of places , you should see decompiled scripts for taxi .

 

@Alexander Blade

Is it even possible make a script to add a custom vehicle to act as a taxi cab? Popgroups/vehiclemodelsets files is not enough.

Edited by Alexander Blade
Link to comment
Share on other sites

@Alexander Blade Hi! I want to try to translate the trainer to spanish and reskin the trainer



I would like to upload the modification to es.gta5-mods.com


I haven't a account of github


sorry my bad english im spanish

Link to comment
Share on other sites

Alexander Blade

Yeah I got the point from your first post , do it if you like !

 

 

@Alexander Blade Hi! I want to try to translate the trainer to spanish and reskin the trainer
I would like to upload the modification to es.gta5-mods.com
I haven't a account of github
sorry my bad english im spanish

 

Link to comment
Share on other sites

 

Yeah I got the point from your first post , do it if you like !

 

 

@Alexander Blade Hi! I want to try to translate the trainer to spanish and reskin the trainer
I would like to upload the modification to es.gta5-mods.com
I haven't a account of github
sorry my bad english im spanish

 

 

@Alexander Blade My visual studio 2015 force update the script to my version. You, in which version of visual studio programed the trainer?

Link to comment
Share on other sites

Can someone explain to me these two options:

STRONG WHEELS
SPEED BOOST
I don't see the effect of them, or I'm missing it? How to check the difference and to see what they do?
edit: Oh I've just checked the code and have seen the num9 and num3 so yeah, maybe now I know for what to look for :)
Edited by beBoss
Link to comment
Share on other sites

InfamousSabre

it seems worldGetAllObjects does not return pickup objects. It will return a weapon object in your hand, but not a weapon object dropped by a ped...

Link to comment
Share on other sites

InfamousSabre

I think that is logical. They are pickups after all.

Well, they are also Objects.

 

Entity pickup = -1;		if(PLAYER::GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(PlayerID, &pickup))		{			DisplayTextExt((std::string)"Aimed Model: " + std::to_string((_ULonglong)ENTITY::GET_ENTITY_MODEL(pickup)) + ((ENTITY::IS_ENTITY_AN_OBJECT(pickup) > 0) ? " is an Object" : " is not an Object"), 0.00, 0.62, 1.00, 0.00);		}

shows it is an object.

Could a function be added to return all pickups? Looking into native OBJECT::REMOVE_ALL_PICKUPS_OF_TYPE may present some insight on how to do this.

Edited by InfamousSabre
Link to comment
Share on other sites

Alexander Blade
InfamousSabre

Pickups are in another pool , so basically they are not typical kind of objects .

Link to comment
Share on other sites

InfamousSabre

Any possibility of having a function in a later release of Script Hook V that will let us access this pool?

InfamousSabre

Pickups are in another pool , so basically they are not typical kind of objects .

 

Link to comment
Share on other sites

Alexander Blade

Yup

 

 

Any possibility of having a function in a later release of Script Hook V that will let us access this pool?

InfamousSabre

Pickups are in another pool , so basically they are not typical kind of objects .

 

 

  • Like 1
Link to comment
Share on other sites

Hi Alexander Blade, Happy New Year. I am having a slight issue, the in game tv stops working after I place the scripthook.dll file in GTA V root folder, but after I take it out, the in game tv begins to work again. By not working I mean, when I turn the in game TV on there is no picture on the TV, its just a black screen as if it were turned off.

Link to comment
Share on other sites

Alexander Blade

Try with other ingame tvs please , try on different saves . What asis are you using ? Also post asiloader.log and ScriptHookV.log

 

Hi Alexander Blade, Happy New Year. I am having a slight issue, the in game tv stops working after I place the scripthook.dll file in GTA V root folder, but after I take it out, the in game tv begins to work again. By not working I mean, when I turn the in game TV on there is no picture on the TV, its just a black screen as if it were turned off.

Edited by Alexander Blade
Link to comment
Share on other sites

 

Try with other ingame tvs please , try on different saves . What asis are you using ? Also post asiloader.log and ScriptHookV.log

 

Hi Alexander Blade, Happy New Year. I am having a slight issue, the in game tv stops working after I place the scripthook.dll file in GTA V root folder, but after I take it out, the in game tv begins to work again. By not working I mean, when I turn the in game TV on there is no picture on the TV, its just a black screen as if it were turned off.

 

Nope none of the 3 character's TVs work. I also checked all my save games the tv doesn't work in any of them. All the .asi I am using are in my asiloader.log. My windows version is Windows 7 Ultimate 64bit.

 

My asiloader.log

 

// GTA V ASI LOADER (build May 2 2015)

// © Alexander Blade 2015

LIB: "C:\Windows\system32\dinput8.dll" => 000007FEEE710000

API: "DirectInput8Create" => 000007FEEE714820

API: "DllCanUnloadNow" => 000007FEEE7220DC

API: "DllGetClassObject" => 000007FEEE722014

API: "DllRegisterServer" => 000007FEEE731050

API: "DllUnregisterServer" => 000007FEEE731064

LOADER: Loading *.asi plugins

ASI: Loading "D:\Grand Theft Auto V\LUA.asi"

"LUA.asi" => 000007FEEB0F0000

ASI: Loading "D:\Grand Theft Auto V\NativeTrainer.asi"

"NativeTrainer.asi" => 000007FEEE340000

ASI: Loading "D:\Grand Theft Auto V\OpenIV.asi"

"OpenIV.asi" => 000007FEF9BA0000

ASI: Loading "D:\Grand Theft Auto V\ScriptHookVDotNet.asi"

"ScriptHookVDotNet.asi" => 000007FEEAE50000

ASI: Loading "D:\Grand Theft Auto V\TrainerV.asi"

"TrainerV.asi" => 000007FEEAA20000

ASI: Loading "D:\Grand Theft Auto V\VehicleController.asi"

"VehicleController.asi" => 000007FEEE310000

LOADER: Finished loading *.asi plugins

 

My ScriptHookV.log

 

// GTA V SCRIPT HOOK (build Dec 20 2015, v1.0.573.1a)

// © Alexander Blade 2015

[12:53:00] INIT: Started

[12:53:00] INIT: Success, game version is VER_1_0_350_1_STEAM

[12:53:00] INIT: Registering script 'LUA.asi' (0x000007FEEB11E6A0)

[12:53:00] INIT: Registering script 'NativeTrainer.asi' (0x000007FEEE34A510)

[12:53:00] INIT: Registering script 'ScriptHookVDotNet.asi' (0x000007FEEAE60700)

[12:53:00] INIT: Registering script 'TrainerV.asi' (0x000007FEEAB0DE30)

[12:53:00] INIT: Registering script 'VehicleController.asi' (0x000007FEEE318550)

[12:53:05] INIT: Pool 1 extended

[12:53:05] INIT: Pool 2 extended

[12:53:05] INIT: Pool 3 extended

[12:53:05] INIT: Pool 4 extended

[12:53:11] INIT: GtaThread collection size 172

[12:53:11] INIT: wnd proc 0x00000000FFFF055F

[12:53:11] INIT: IDXGISwapChain 0x000007FEF85B5AE0 (0x000007FEF85DB2F8)

[12:53:11] INIT: IDXGISwapChain set

[12:53:11] INIT: DX init started

[12:53:11] INIT: DX feature level B000

[12:53:11] INIT: DX init succeeded

[12:53:41] CORE: Requesting thread creation

[12:53:41] CORE: Creating threads

[12:53:43] CORE: Started control thread, id 27 active 1

[12:53:43] CORE: Started thread 'LUA.asi' (0x000007FEEB11E6A0), id 28 active 1

[12:53:43] CORE: Started thread 'NativeTrainer.asi' (0x000007FEEE34A510), id 29 active 1

[12:53:43] CORE: Started thread 'ScriptHookVDotNet.asi' (0x000007FEEAE60700), id 30 active 1

[12:53:43] CORE: Started thread 'TrainerV.asi' (0x000007FEEAB0DE30), id 31 active 1

[12:53:43] CORE: Started thread 'VehicleController.asi' (0x000007FEEE318550), id 32 active 1

[12:53:43] CORE: Launching main() for 'LUA.asi' (0x000007FEEB11E6A0), id 28

[12:53:43] CORE: Launching main() for 'NativeTrainer.asi' (0x000007FEEE34A510), id 29

[12:53:43] CORE: Launching main() for 'ScriptHookVDotNet.asi' (0x000007FEEAE60700), id 30

[12:53:43] CORE: Launching main() for 'TrainerV.asi' (0x000007FEEAB0DE30), id 31

[12:53:43] CORE: Launching main() for 'VehicleController.asi' (0x000007FEEE318550), id 32

[12:55:15] CORE: Cleaning threads

[12:55:15] CORE: Creating threads

[12:55:18] CORE: Started control thread, id 145 active 1

[12:55:18] CORE: Started thread 'LUA.asi' (0x000007FEEB11E6A0), id 146 active 1

[12:55:18] CORE: Started thread 'NativeTrainer.asi' (0x000007FEEE34A510), id 147 active 1

[12:55:18] CORE: Started thread 'ScriptHookVDotNet.asi' (0x000007FEEAE60700), id 148 active 1

[12:55:18] CORE: Started thread 'TrainerV.asi' (0x000007FEEAB0DE30), id 149 active 1

[12:55:18] CORE: Started thread 'VehicleController.asi' (0x000007FEEE318550), id 150 active 1

[12:55:18] CORE: Launching main() for 'LUA.asi' (0x000007FEEB11E6A0), id 146

[12:55:18] CORE: Launching main() for 'NativeTrainer.asi' (0x000007FEEE34A510), id 147

[12:55:18] CORE: Launching main() for 'ScriptHookVDotNet.asi' (0x000007FEEAE60700), id 148

[12:55:18] CORE: Launching main() for 'TrainerV.asi' (0x000007FEEAB0DE30), id 149

[12:55:18] CORE: Launching main() for 'VehicleController.asi' (0x000007FEEE318550), id 150

[13:01:10] UNINIT: Unregistering script 'TrainerV.asi'

[13:01:10] UNINIT: Unregistering script 'ScriptHookVDotNet.asi'

[13:01:10] UNINIT: Unregistering script 'NativeTrainer.asi'

Edited by Abhi740
Link to comment
Share on other sites

Alexander Blade

Check only with NativeTrainer.asi , if it will be the same then the reason is you using b350 .

Link to comment
Share on other sites

Check only with NativeTrainer.asi , if it will be the same then the reason is you using b350 .

b350? what is that. K so after I took out all the asi out except for NativeTrainer.asi I get an error saying "Corrupt game data. Please reboot or reinstall game"

Edited by Abhi740
Link to comment
Share on other sites

Alexander Blade
Abhi740

It says that if you had some rpfs edited , put OpenIV.asi back and test again . b350 it's your old game patch .

Link to comment
Share on other sites

Abhi740

It says that if you had some rpfs edited , put OpenIV.asi back and test again . b350 it's your old game patch .

Ahh k thanks will check tomorrow first thing in the morning. My game patch is upto v1.0.505.2 Edited by Abhi740
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.