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

Alexander Blade

Probably you had 32vehicles asi ? Show the logs guyz !

 

Well, last update + latest Native Trainer - just crashing the game (Loading screen)

 

 

Well.... I have the Retail Version of the game and the game crash at loading...

 

As soon I have the dinput8.dll "installed" in my main folder the game crash

Without the dinput8.dll the game load normal

 

(Tested on Win7 64Bit)

Link to comment
Share on other sites

 

 

 

 

It probably doesn't return a numeric value, modify the natives.h to make it return a char pointer. It's probably something like a char pointer.

char ccr = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh));string car = to_string(ccr);
if car BODHI2 return 60

if car GRANGER return -36

 

that's one char, not a pointer to the first char ( which leads to a string, afaik ) char *

 

char ccr[] = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh))orchar* ccr = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh))
not compile

Help me

 

That's why you should try editing natives.h, but, i'm no expert at this. Just some wild guesses.

 

 

This code work!

char* carname = (char *)(LPCSTR)VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh));
  • Like 2
Link to comment
Share on other sites

theproadam

Guys, i think its time for a Mod loader for GTA 5. And the Modloader have to load the patch that you want. Play with/out Mods option. If you play with mods, you are playing automaticly offline (SC Offline Mode). That can fix all problems and safe some disc space for reinstalling or something :lol: If this coming out this year, then it will be the most normal Mod that everyone have.

Yeah i could make something like that. However since i don't have GTA V yet, and i dont think a 860M would (well maybe it could on low - med) handle gta v. I could write an app / modloader which would make loading / changing scripts easier. Still, who knows. When i get GTA V il probably make that.

 

EDIT: Yes i could create it without GTA V. It would be harder but if somebody supplied me with the screenshots of the directory. And sais how they wanted it to work then i would create that app.(Im just a coder not a designer.)

Edited by theproadam
Link to comment
Share on other sites

Craigsters

I've been playing with the newly updated native trainer for the last few hours alone in single player mode of course and always and I checked both my email's affiliated with rockstar and steam accounts, and no email's threatening or mentioning to ban me, someone in the GTA community is spreading false news and is Fear mongering about native, so relax everyone, the newly updated native trainer is working as it should!..

Edited by Craigsters

"You don't understand! I could've had class. I could've been a contender. I could've been somebody, instead of a bum, which is what I am."

                                                                                                                                                   

                                                                                                                                                                           On the Waterfront 1954 M.Brando

Link to comment
Share on other sites

 

Guys, i think its time for a Mod loader for GTA 5. And the Modloader have to load the patch that you want. Play with/out Mods option. If you play with mods, you are playing automaticly offline (SC Offline Mode). That can fix all problems and safe some disc space for reinstalling or something :lol: If this coming out this year, then it will be the most normal Mod that everyone have.

Yeah i could make something like that. However since i don't have GTA V yet, and i dont think a 860M would (well maybe it could on low - med) handle gta v. I could write an app / modloader which would make loading / changing scripts easier. Still, who knows. When i get GTA V il probably make that.

 

EDIT: Yes i could create it without GTA V. It would be harder but if somebody supplied me with the screenshots of the directory. And sais how they wanted it to work then i would create that app.(Im just a coder not a designer.)

 

 

I also thought about making a program like that, shouldn't be too hard after all but hey, maybe we could work together? I also do design, check my website if you want! :)

Link to comment
Share on other sites

 

Guys, i think its time for a Mod loader for GTA 5. And the Modloader have to load the patch that you want. Play with/out Mods option. If you play with mods, you are playing automaticly offline (SC Offline Mode). That can fix all problems and safe some disc space for reinstalling or something :lol: If this coming out this year, then it will be the most normal Mod that everyone have.

Yeah i could make something like that. However since i don't have GTA V yet, and i dont think a 860M would (well maybe it could on low - med) handle gta v. I could write an app / modloader which would make loading / changing scripts easier. Still, who knows. When i get GTA V il probably make that.

 

EDIT: Yes i could create it without GTA V. It would be harder but if somebody supplied me with the screenshots of the directory. And sais how they wanted it to work then i would create that app.(Im just a coder not a designer.)

 

Don't sell yourself short, I played Story Mode on my laptop which has a 650m. :p

Link to comment
Share on other sites

nothingisfree

@ Alexander Blade

 

Thank you so much for the update! It works like a charm! How can I make a donation to you?

 

Again thank you for the fast update!

Link to comment
Share on other sites

theproadam

Don't sell yourself short, I played Story Mode on my laptop which has a 650m. :p

Wow! Well i might buy the game soon! Whats your FPS. Im using a ASUS G751JM, however with 16GB of ram and i7-4710HQ.

Edited by theproadam
Link to comment
Share on other sites

"Script hook closes the game when player goes Online, this is done because the game reports installed mods list to R* while being in Online mode"

So, how to play online? I have to delete the files to be able to play online again?

Link to comment
Share on other sites

Great trainer! So after new update North Yankton is not loaded anymore? Bad... :(

Link to comment
Share on other sites

 

It's a fix time I guess :D Plugin developers should find what doesn't work for them and tell me about it (better in PM) I will look what I did incorrectly

Hi Alex, Thanks for the reload function, this will be major time saver. I created my own project linked to the lib file and so far works perfectly.

 

By the way, what's up with the keyboard hook ? why do we need to use it instead of normal api calls ?

 

Is there a reload function? I'm still on the old version. Is this integrated into the scripthook or the trainer?

Link to comment
Share on other sites

grasmanek94

 

Guys, i think its time for a Mod loader for GTA 5. And the Modloader have to load the patch that you want. Play with/out Mods option. If you play with mods, you are playing automaticly offline (SC Offline Mode). That can fix all problems and safe some disc space for reinstalling or something :lol: If this coming out this year, then it will be the most normal Mod that everyone have.

Yeah i could make something like that. However since i don't have GTA V yet, and i dont think a 860M would (well maybe it could on low - med) handle gta v. I could write an app / modloader which would make loading / changing scripts easier. Still, who knows. When i get GTA V il probably make that.

 

EDIT: Yes i could create it without GTA V. It would be harder but if somebody supplied me with the screenshots of the directory. And sais how they wanted it to work then i would create that app.(Im just a coder not a designer.)

 

I'm playing on a GT630M,

 

these are my settings:

 

 

<?xml version="1.0" encoding="UTF-8"?><Settings>  <version value="27" />  <configSource>SMC_AUTO</configSource>  <graphics>    <Tessellation value="0" />    <LodScale value="0.000000" />    <PedLodBias value="0.000000" />    <VehicleLodBias value="0.000000" />    <ShadowQuality value="0" />    <ReflectionQuality value="0" />    <ReflectionMSAA value="0" />    <SSAO value="0" />    <AnisotropicFiltering value="16" />    <MSAA value="0" />    <MSAAFragments value="0" />    <MSAAQuality value="0" />    <TextureQuality value="0" />    <ParticleQuality value="0" />    <WaterQuality value="0" />    <GrassQuality value="0" />    <ShaderQuality value="0" />    <Shadow_SoftShadows value="0" />    <UltraShadows_Enabled value="false" />    <Shadow_ParticleShadows value="false" />    <Shadow_Distance value="1.000000" />    <Shadow_LongShadows value="false" />    <Shadow_SplitZStart value="0.000000" />    <Shadow_SplitZEnd value="0.000000" />    <Shadow_aircraftExpWeight value="0.000000" />    <Shadow_DisableScreenSizeCheck value="false" />    <Reflection_MipBlur value="false" />    <FXAA_Enabled value="false" />    <TXAA_Enabled value="false" />    <Lighting_FogVolumes value="false" />    <Shader_SSA value="false" />    <DX_Version value="0" />    <CityDensity value="0.000000" />    <PedVarietyMultiplier value="0.000000" />    <VehicleVarietyMultiplier value="0.000000" />    <PostFX value="0" />    <DoF value="false" />    <HdStreamingInFlight value="false" />    <MaxLodScale value="0.000000" />    <MotionBlurStrength value="0.000000" />  </graphics>  <system>    <numBytesPerReplayBlock value="0" />    <numReplayBlocks value="0" />    <maxSizeOfStreamingReplay value="0" />    <maxFileStoreSize value="0" />  </system>  <audio>    <Audio3d value="false" />  </audio>  <video>    <AdapterIndex value="0" />    <OutputIndex value="0" />    <ScreenWidth value="800" />    <ScreenHeight value="600" />    <RefreshRate value="60" />    <Windowed value="0" />    <VSync value="0" />    <Stereo value="0" />    <Convergence value="0.001000" />    <Separation value="0.000000" />    <PauseOnFocusLoss value="1" />    <AspectRatio value="0" />  </video>  <VideoCardDescription>NVIDIA GeForce GT 630M  </VideoCardDescription></Settings>

constant 40 FPS (if I put some ice on the upside of my laptop to keep the temp a bit lower because cooling sucks)

Link to comment
Share on other sites

Alexander Blade

See the download page , it has the link

@ Alexander Blade

 

Thank you so much for the update! It works like a charm! How can I make a donation to you?

 

Again thank you for the fast update!

 

You just need to disable asiloader , for example rename dinput8.dll to !dinput8.dll

"Script hook closes the game when player goes Online, this is done because the game reports installed mods list to R* while being in Online mode"

So, how to play online? I have to delete the files to be able to play online again?

 

Yes , reload function is there , it's in the ScriptHookV , you can download SDK and read about it .

 

 

It's a fix time I guess :D Plugin developers should find what doesn't work for them and tell me about it (better in PM) I will look what I did incorrectly


Hi Alex, Thanks for the reload function, this will be major time saver. I created my own project linked to the lib file and so far works perfectly.

By the way, what's up with the keyboard hook ? why do we need to use it instead of normal api calls ?

 

Is there a reload function? I'm still on the old version. Is this integrated into the scripthook or the trainer?

 

Link to comment
Share on other sites

 

Don't sell yourself short, I played Story Mode on my laptop which has a 650m. :p

Wow! Well i might buy the game soon! Whats your FPS. Im using a ASUS G751JM, however with 16GB of ram and i7-4710HQ.

 

Most of the time over 30fps, very rarely it would drop (when lots of smoke or explosions or shooting, you know, lots of particles and such), I sacrificed DirectX to set it to play in 1920x1080 (DX9), but overall a pleasant experience. Since you have a 860m, your experience will be much better.

 

Oh, and after doing it, I took the memory usage the game tells you and upped some options here and there without going over the usage.

Link to comment
Share on other sites

akbaryahya

Great trainer! So after new update North Yankton is not loaded anymore? Bad... :(

you can do with REQUEST_IPL, the latest version this

GL24KeW.jpg

Link to comment
Share on other sites

I tried to contact Rockstar (twitter, email, question on Rockstar's support page,...) to ask if we risk an online ban for using Alexander Blade's trainer in story mode but I haven't got any answer yet...

 

I'm waiting an official announcement, I don't want to loose my character (which comes from my PS3 and has a lot of money and xp)

 

I certainly want to know the answer to this too. I always deleted the hook and dlls before starting online just to be on the safer side.

Link to comment
Share on other sites

 

 

It's a fix time I guess :D Plugin developers should find what doesn't work for them and tell me about it (better in PM) I will look what I did incorrectly

Hi Alex, Thanks for the reload function, this will be major time saver. I created my own project linked to the lib file and so far works perfectly.

 

By the way, what's up with the keyboard hook ? why do we need to use it instead of normal api calls ?

 

Is there a reload function? I'm still on the old version. Is this integrated into the scripthook or the trainer?

 

Ok, even if there is a reload function, windows wont' let me overwrite. "folder in use" error. Can't build over the file either. Anyone using windows8/10 and know of a way around this issue?

 

*edit*

Ok, found the info in the SDK, should have dug deeper first I guess. :miranda:

Edited by bugbutts
Link to comment
Share on other sites

Alexander Blade

No reload for old hook

 

 

 

It's a fix time I guess :D Plugin developers should find what doesn't work for them and tell me about it (better in PM) I will look what I did incorrectly


Hi Alex, Thanks for the reload function, this will be major time saver. I created my own project linked to the lib file and so far works perfectly.

By the way, what's up with the keyboard hook ? why do we need to use it instead of normal api calls ?

 

Is there a reload function? I'm still on the old version. Is this integrated into the scripthook or the trainer?

 

Ok, even if there is a reload function, windows wont' let me overwrite. "folder in use" error. Can't build over the file either. Anyone using windows8/10 and know of a way around this issue?

 

Link to comment
Share on other sites

So I put in the scripthookV.dll and the nativetrainer.asi + the dinput8.dll but the trainer is not working... my version is 1.0.350.1. when i hit F4 nothing happens.. What do I have to do?

 

Link to comment
Share on other sites

 

 

 

 

 

It probably doesn't return a numeric value, modify the natives.h to make it return a char pointer. It's probably something like a char pointer.

char ccr = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh));string car = to_string(ccr);
if car BODHI2 return 60

if car GRANGER return -36

 

that's one char, not a pointer to the first char ( which leads to a string, afaik ) char *

 

char ccr[] = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh))orchar* ccr = VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh))
not compile

Help me

 

That's why you should try editing natives.h, but, i'm no expert at this. Just some wild guesses.

 

 

This code work!

char* carname = (char *)(LPCSTR)VEHICLE::GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(ENTITY::GET_ENTITY_MODEL(veh));

 

What he meant was changing this:

static Any GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(Any p0) { return invoke<Any>(0xB215AAC32D25D019, p0); } // B215AAC32D25D019 EC86DF39

to:

static char* GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(Hash p0) { return invoke<char*>(0xB215AAC32D25D019, p0); } // B215AAC32D25D019 EC86DF39

in natives.h. This way you do not need to cast the result to char* every time ;) .

 

And thanks from me, too, Alexander for the revised version! Thats really great work and especially the reload function comes in very handy :cool: .

Edited by BenBaron
  • Like 2
Link to comment
Share on other sites

a_tavenner

New scripthook working great here (Windows 8.1, Steam version). Thank you so much, Alexander. :)

 

Regarding the bans: I myself haven't been banned, but I also haven't played from the time Scripthook broke to the time it was updated, so that may have helped. Also was never in contact with cheaters (I barely played online).

 

It hasn't turned into a sh*tstorm, so chances are Rockstar pulled off a successful banhammer with minimal collateral damage. A cursory look at the Reddit megathread on the subject has a lot of people admitting to having cheated, with some claiming they did not and were banned for offline mod use instead (which, obviously, cannot be verified). There's very little outrage around.

 

So, for those not up to speed: apparently the bans are supposed to last two weeks, and they don't impose restrictions upon single-player at all. So if you don't care about playing Online, go nuts with modding, and if you do, it's just two weeks (a penalty that may change in severity at any moment, so do bear that in mind).

 

EDIT: Just to clarify, I'm referring to bans you may get from playing modded SP with your internet on and no firewall blocks on the .exes. There's some reports of that. I'm not telling anybody to be careful about their online cheating. If you got banned for that, good. When the ban lifts, quit being an asshole.

Edited by a_tavenner
Link to comment
Share on other sites

 

I tried to contact Rockstar (twitter, email, question on Rockstar's support page,...) to ask if we risk an online ban for using Alexander Blade's trainer in story mode but I haven't got any answer yet...

 

I'm waiting an official announcement, I don't want to loose my character (which comes from my PS3 and has a lot of money and xp)

 

I certainly want to know the answer to this too. I always deleted the hook and dlls before starting online just to be on the safer side.

 

If you want to check if they answered me: https://support.rockstargames.com/hc/fr/requests/3796914

Link to comment
Share on other sites

Stifler44

Alexander, thank you for you answer. Now I can use. Before when I pressed f4 he can't open because the problem come to my keyboard, when I press f4 he start shortcut and for this I search on Google the name of my keyboard and when I press "FN" (to my keyboard) he moves at another option ... xD before, I didn't know than I had this button on my keyboard ...

  • Like 1
Link to comment
Share on other sites

Alexander Blade

Logs please ? Do you have FN key on your keyboard ? Are you running GTA on a notebook ?

So I put in the scripthookV.dll and the nativetrainer.asi + the dinput8.dll but the trainer is not working... my version is 1.0.350.1. when i hit F4 nothing happens.. What do I have to do?

 

 

Thanks for your reply !

Alexander, thank you for you answer. Now I can use. Before when I pressed f4 he can't open because the problem come to my keyboard, when I press f4 he start shortcut and for this I search on Google the name of my keyboard and when I press "FN" (to my keyboard) he moves at another option ... xD before, I didn't know than I had this button on my keyboard ...

Edited by Alexander Blade
Link to comment
Share on other sites

lunchxbles

I'm very new to coding but I just wanted to try and compile that notify above map code, which it does compile, but it never seems to show up in game or in log. If anyone could help it would be great, i'm compiling it to dll then renaming to .asi but it never seems to show up in the scripthookv.log. I included script.h like it said to.

#include "script.h"#include <string>#include <ctime>void NotifyAboveMap(char *){	UI::_0x202709F4C58A0424("STRING");	UI::_ADD_TEXT_COMPONENT_STRING("Message");	UI::_0x2ED7843F8F801023(0, 1);}void main(){	NotifyAboveMap;}

 

Like I said it never shows up anywhere in scripthookv.log

[13:00:43] CORE: Started thread 'InteriorWarper.asi', id 31 active 1
[13:00:43] CORE: Started thread 'IPLLoader.asi', id 32 active 1
[13:00:43] CORE: Started thread 'NativeTrainer.asi', id 33 active 1
[13:00:43] CORE: Started thread 'VehicleController.asi', id 34 active 1
[13:00:43] CORE: Launching main() for 'InteriorWarper.asi'
[13:00:43] CORE: Launching main() for 'IPLLoader.asi'
[13:00:43] CORE: Launching main() for 'NativeTrainer.asi'
[13:00:43] CORE: Launching main() for 'VehicleController.asi'
Edited by lunchxbles
Link to comment
Share on other sites

psycho6mantis

the new update of this is not letting me play online...no i dont mean letting me use it online..im talking the game knows the files are there in general and doesnt even let me connect...it force closes everytime

Link to comment
Share on other sites

 

Logs please ? Do you have FN key on your keyboard ? Are you running GTA on a notebook ?

So I put in the scripthookV.dll and the nativetrainer.asi + the dinput8.dll but the trainer is not working... my version is 1.0.350.1. when i hit F4 nothing happens.. What do I have to do?

 

I got a FN key, playing on a normal windows 8 PC (Desktop) and which logs do you mean?

Link to comment
Share on other sites

Alexander Blade

In the game folder asiloader.log and ScriptHookV.log , show the contents of them and please try activating the trainer with FN + F4 key as well

 

 

Logs please ? Do you have FN key on your keyboard ? Are you running GTA on a notebook ?

So I put in the scripthookV.dll and the nativetrainer.asi + the dinput8.dll but the trainer is not working... my version is 1.0.350.1. when i hit F4 nothing happens.. What do I have to do?

 

I got a FN key, playing on a normal windows 8 PC (Desktop) and which logs do you mean?

 

Edited by Alexander Blade
Link to comment
Share on other sites

Hello, Im new to gtaforums, and I have an issue, When I run gta with the newest script hook, and im on version 350.1. My game is stuck at loading GTA ONLINE. yet I chose single player, and its just stuck there.

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.