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

 

@baba0rum REMOVE_BLIP wants the pointer, not the blip itself.

 

Try

 

UI::REMOVE_BLIP(&blipstest);
(If it works, try again without the SET_BLIP_ROUTE line, just to check if it's required)

 

Tried with &blipstest but VS still want i use a Any*

 

(Blip* is not compatible with Any*)

 

 

Edit:

 

Any blipstest = UI::ADD_BLIP_FOR_ENTITY(playerinfo);UI::REMOVE_BLIP(&blipstest);look like it work. need to test few thing 

If you don't change the natives.h manually or download the recent from the database, where the native is already declared as UI::REMOVE_BLIP (int*), you still need to cast, so do it like this:

UI::REMOVE_BLIP ((Any*)&blipstest);

Link to comment
Share on other sites

How can i use script in my laptop

without numpad in my keyboard?

you have a couple options...

 

1. you can buy a numpad that plugs into your usb port like this...

 

sku_24696_2_small.jpg

 

2. Or you need to request the mod author make an ini file for customizing keys

 

3. Get the source code and edit the keys used in the code and compile for yourself

 

If you get source code to a mod I will edit keys for you if you want ;)

 

If it was me, I would go buy a numpad because gta doesnt use it and it is perfect keys to use for mods ;)

Edited by c39687
Link to comment
Share on other sites

So, I'm having trouble getting all these .dll hacks to play nice with each other. I'm currently running:

 

1) Script Hook V

2) X360CE (TocaEdit Xbox 360 Controller Emulator), for use with my Logitech G27 wheel and pedals

3) OpenIV

 

The problem is that all three of these all write their own dinput8.dll files, all intended for injecting/running third-party code (x360ce also runs its own xinput1_3.dll to boot). On x360ce's board they provided a third-party dinput.dll which allows me to rename Script Hook V's .dll to asiloader.dll in order to run it alongside... but running it with OpenIV's .asi doesn't seem to work, even if I use OpenIV's dinput8.dll (renamed to asiloader.dll) instead. Anytime I edit update.rpf with a new handling.meta through OpenIV, all I get is an error on load complaining of corrupt data files, which is bothersome because the handling file clearly works for other people.

 

Since I couldn't possibly be doing anything *that* wrong with OpenIV (trying both drag-drop and context-menu-replace will corrupt the file, rebuilding the RPF notwithstanding), I have to think that somehow it's an incompatiblity with the ASI loader being renamed to asiloader.dll.

 

Do we know for sure if OpenIV is using the same ASI loader as Script Hook V? Is there anything else I might be able to try for compatibility?

 

[edit] (Just for clarification, the setup works fine for .asi mods, and I'm running ScriptHookVDotNet and LUA.asi alongside just fine. It's only when I try to edit RPFs with OpenIV that things explode.)

 

[edit2] Yep, I've confirmed that the cause is renaming OpenIV's ASI loader to asiloader.dll and using x360ce's dinput8.dll (which daisy-chains asiloader.dll). If I use OpenIV's dinput8.dll directly, RPF edits work fine. This is profoundly sad because it's not like we could never use a racing wheel -- no, we *could* use a racing wheel, but only if we give up RPF modding to do so. That's a horrifying tradeoff -- you can have one good thing or the other, but never both. (So, sort of like dating.)

 

[edit3] Other sources of discussion on this issue, since it seems like this could turn into one of those back-and-forth issues:

 

https://github.com/x360ce/x360ce/issues/66

http://openiv.com/?p=1082&cpage=2#comment-54213

Edited by jtgibson
Link to comment
Share on other sites

Alexander Blade

You can find trainer with custom keys on gta5mods

 

How can i use script in my laptop
without numpad in my keyboard?

you have a couple options...

 

1. you can buy a numpad that plugs into your usb port like this...

 

sku_24696_2_small.jpg

 

2. Or you need to request the mod author make an ini file for customizing keys

 

3. Get the source code and edit the keys used in the code and compile for yourself

 

If you get source code to a mod I will edit keys for you if you want ;)

 

If it was me, I would go buy a numpad because gta doesnt use it and it is perfect keys to use for mods ;)

 

 

You can use dsound asiloader instead of dinput8 one , here is it https://dl.dropboxusercontent.com/u/1237747/temp/dsound.dll

So, I'm having trouble getting all these .dll hacks to play nice with each other. I'm currently running:

 

1) Script Hook V

2) X360CE (TocaEdit Xbox 360 Controller Emulator), for use with my Logitech G27 wheel and pedals

3) OpenIV

 

The problem is that all three of these all write their own dinput8.dll files, all intended for injecting/running third-party code (x360ce also runs its own xinput1_3.dll to boot). On x360ce's board they provided a third-party dinput.dll which allows me to rename Script Hook V's .dll to asiloader.dll in order to run it alongside... but running it with OpenIV's .asi doesn't seem to work, even if I use OpenIV's dinput8.dll (renamed to asiloader.dll) instead. Anytime I edit update.rpf with a new handling.meta through OpenIV, all I get is an error on load complaining of corrupt data files, which is bothersome because the handling file clearly works for other people.

 

Since I couldn't possibly be doing anything *that* wrong with OpenIV (trying both drag-drop and context-menu-replace will corrupt the file, rebuilding the RPF notwithstanding), I have to think that somehow it's an incompatiblity with the ASI loader being renamed to asiloader.dll.

 

Do we know for sure if OpenIV is using the same ASI loader as Script Hook V? Is there anything else I might be able to try for compatibility?

 

[edit] (Just for clarification, the setup works fine for .asi mods, and I'm running ScriptHookVDotNet and LUA.asi alongside just fine. It's only when I try to edit RPFs with OpenIV that things explode.)

 

[edit2] Yep, I've confirmed that the cause is renaming OpenIV's ASI loader to asiloader.dll and using x360ce's dinput8.dll (which daisy-chains asiloader.dll). If I use OpenIV's dinput8.dll directly, RPF edits work fine. This is profoundly sad because it's not like we could never use a racing wheel -- no, we *could* use a racing wheel, but only if we give up RPF modding to do so. That's a horrifying tradeoff -- you can have one good thing or the other, but never both. (So, sort of like dating.)

 

[edit3] Other sources of discussion on this issue, since it seems like this could turn into one of those back-and-forth issues:

 

https://github.com/x360ce/x360ce/issues/66

http://openiv.com/?p=1082&cpage=2#comment-54213

Link to comment
Share on other sites

Viv1d-Shadows

Just a general question, let's say I install this mod for S.P then I want to play Online, can I just remove the Scripthook and dsound dlls and I should be fine, or do I have to remove all simple native trainer related files?

Link to comment
Share on other sites

You can use dsound asiloader instead of dinput8 one , here is it https://dl.dropboxusercontent.com/u/1237747/temp/dsound.dll

I can't believe it was that easy, since I would always get a crash if I used the Script Hook V dinput8.dll as the renamed ASI loader, and wouldn't if I used the OpenIV dinput8.dll as the renamed ASI loader, but yes, that solved it! No renaming anymore, either, which is a big plus. =)

 

To give back to the community, I'll write up a guide/checklist here for anyone who wants to use a Logitech G27 with OpenIV and Script Hook V. This assumes you're starting from a scratch install of GTA V. (If you've already got working installations of Script Hook V and OpenIV, you can just use the dsound.dll from step 1 and skip step 2 entirely.) Without further ado:

  • First, Script Hook V!
    • Download Script Hook V from Alexander Blade's homepage.
    • Extract the ScriptHookV.dll directly into your Grand Theft Auto V folder. You don't need the other stuff in that file. Nope, seriously, you don't. (You might want Native Trainer, but that's purely optional, and there are plenty of alternative trainers out there.) Instead:
    • Copy the dsound.dll ASI loader -- not the dinput8.dll ASI loader included with that download -- and put that directly in your Grand Theft Auto V folder. That link is Alexander Blade's original DLL mirrored on my Dropbox, but if you don't trust me personally (not that I would have any particular incentive to screw you over =P) you can also download it from Alexander Blade's post or the link at the top of this post (although it's a temporary link, so the file might not be there in the infinitely foreseeable future).
  • Next up, OpenIV!
    • Download OpenIV from the OpenIV homepage.
    • Run the ovisetup.exe and perform all of the necessary installation steps.
    • Run OpenIV and set it up by specifying your Grand Theft Auto V folder.
    • Click Edit Mode (there should be a pop-up telling you how) -- you'll get a black message bar on the screen telling you that you'll need an ASI loader and a plugin. The Install link is hard to see if the window is maximised: look for it on the far right hand side. Install that too, you'll also need it.
    • The plugin will install dinput8.dll and OpenIV.asi. You will need OpenIV.asi. You will not need dinput8.dll -- you already have dsound.dll for ASI loading purposes.
    • Delete dinput8.dll after it is installed. Do NOT delete OpenIV.asi.
  • Now, finally, the drivers for your steering wheel. I use a Logitech G27, but likely works for any other steering wheel (and you can use the same application for many other controllers as well if you're interested in getting a little creative).
    • Again, DELETE dinput8.dll from your Grand Theft Auto V folder if it is there. IMPERATIVE, CRITICAL, NECESSARY, MANDATORY, AND MANY OTHER SYNONYMS. I'M SERIOUSLY.
    • Download the TocaEdit Xbox 360 Controller Emulator (x360ce) drivers (scroll down to the section that says "Downloads" underneath the file list for the .zip files). Grand Theft Auto V does use 64-bit binaries, so make sure you download that version if you're running on a 64-bit Windows platform. Extract the executable from the .zip and place it directly in your Grand Theft Auto V game folder.
    • Run the application: it will prompt you to create dinput8.dll and xinput1_3.dll. Say yes to both prompts. (If you didn't delete dinput8.dll earlier, you will not get these prompts. Things will break badly. Don't say I didn't warn you.)
    • (If you're in doubt as to whether you need the 32-bit or 64-bit version of x360ce, try running the 64-bit version first. If it crashes on startup, delete dinput8.dll and xinput1_3.dll and try again with the 32-bit version.)
    • KEEP this dinput8.dll. This dinput8.dll is good. The other dinput8.dll is bad.
    • Now, the tricky part: you will need to have a meaningful deadzones set up in the application. Switch to the Left Thumb tab and configure to your liking. I personally use Anti-Deadzone 10% (3277), Dead Zone 1% (328), and 65% sensitivity, using the G27's full 900-degree lock for best realism. You'll probably have to play with these settings for optimum comfort.
  • Now, you're all set for installing ScriptHookVDotNet, LUA.asi, and all your other script mods.
  • Finally, keep that view in first person from now on! There is no comparison for the feeling of whizzing down the highway in first person view with your hands on a real steering wheel (even if you're actually on a motorcycle, which normally has handlebars instead). Enjoy!
If you want a quick-and-easy copy/paste job for your x360ce.ini settings, copy everything here and insert it into your x360ce.ini file, overwriting everything below the InstanceGuid line:

 

 

 

AxisToDPadDeadZone=256AxisToDPad=0AxisToDPadOffset=0A=1B=3GuideButton=Back=9Start=10X=2Y=4D-pad POV=1D-pad Down=D-pad Left=D-pad Right=D-pad Up=UseForceFeedback=0ForcePercent=100SwapMotor=0FFBType=0ControllerType=2LeftMotorPeriod=60LeftMotorStrength=100Left Shoulder=6Left Analog X AntiDeadZone=3277Left Analog Y AntiDeadZone=0Left Analog X Linear=-65Left Analog Y Linear=0Left Analog X=1Left Analog Y=Left Thumb=20Left Analog X DeadZone=328Left Analog Y DeadZone=0Left Analog Y- Button=0Left Analog X- Button=0Left Analog X+ Button=0Left Analog Y+ Button=0Left Trigger=a-6LeftTriggerDeadzone=0PassThrough=0RightMotorPeriod=140RightMotorStrength=100Right Shoulder=12Right Analog X AntiDeadZone=0Right Analog Y AntiDeadZone=0Right Analog X Linear=0Right Analog Y Linear=0Right Analog X=Right Analog Y=Right Thumb=15Right Analog X DeadZone=0Right Analog Y DeadZone=0Right Analog Y- Button=0Right Analog X- Button=17Right Analog X+ Button=18Right Analog Y+ Button=19Right Trigger=a-2RightTriggerDeadZone=0ForcesPassThrough=0PassThroughIndex=0Right Trigger DeadZone=0Left Trigger DeadZone=0Combined=0CombinedIndex=0A DeadZone=0B DeadZone=0X DeadZone=0Y DeadZone=0Start DeadZone=0Back DeadZone=0Left Shoulder DeadZone=0Left Thumb DeadZone=0Right Shoulder DeadZone=0Right Thumb DeadZone=0AxisToDPadDownDeadZone=0AxisToDPadLeftDeadZone=0AxisToDPadRightDeadZone=0AxisToDPadUpDeadZone=0LeftMotorDirection=0RightMotorDirection=0

 

 

Note that my setup also includes pulling down on your H-shifter as an e-brake, which is pretty sweet (lets you get all of those J-turn urges out in a virtual world instead of looking like a !&$%ing douchebag in the real one), but the inputs can glitch a smidgeon and do some weird things (like recording clips) due to GTA V having some weird unchangeable controller mappings. (An alternative refinement is using something like GlovePIE or AutoHotkey to treat joystick button 12 as the Spacebar.)

 

It should look something like the following when you're done -- remember, the GUIDs are system dependent, so although the ProductName and ProductGuid would match, your InstanceGuid (and the section header) will be different:

 

 

 

[iG_74ecf440ba5811e18001444553540000]ProductName=Logitech G27 Racing Wheel USBProductGuid=c29b046d-0000-0000-0000-504944564944InstanceGuid=74ecf440-ba58-11e1-8001-444553540000AxisToDPadDeadZone=256AxisToDPad=0AxisToDPadOffset=0A=1B=3GuideButton=...etc...

 

 

-----

 

Just a general question, let's say I install this mod for S.P then I want to play Online, can I just remove the Scripthook and dsound dlls and I should be fine, or do I have to remove all simple native trainer related files?

The best way to do it is to rename the ASI loader -- so dsound.dll or dinput8.dll, depending on which one you're using -- to something like "dsound.dll.DISABLED". That should entirely disable all mods you have in your installation. If you're using any mods installed by OpenIV this will also force a redownload of the modified files, assuming you're using the Rockstar Warehouse version (I think with the Steam version you'll have to manually reverify).

 

[edit] The above struck-through stuff is wrong! Wrong wrong wrong. Apparently only common.rpf is re-acquired if damaged -- for some reason update.rpf is not. Instead, always make sure you keep a backup before making any edits to an RPF file through OpenIV. If you haven't made a backup you'll need to re-download the game before playing online (or re-verify through Steam).

Edited by jtgibson
  • Like 3
Link to comment
Share on other sites

Viv1d-Shadows

Just a general question, let's say I install this mod for S.P then I want to play Online, can I just remove the Scripthook and dsound dlls and I should be fine, or do I have to remove all simple native trainer related files?

The best way to do it is to rename the ASI loader -- so dsound.dll or dinput8.dll, depending on which one you're using -- to something like "dsound.dll.DISABLED". That should entirely disable all mods you have in your installation. If you're using any mods installed by OpenIV this will also force a redownload of the modified files, assuming you're using the Rockstar Warehouse version (I think with the Steam version you'll have to manually reverify).

 

Thank you

Link to comment
Share on other sites

HilmanAriFahmi

GTA5%2B2015-05-23%2B10-55-10-911.jpg

 

What is this code that is in use?

0D24D37CC275948CC
0D80958FC74E988A6

; =============== S U B R O U T I N E =======================================.text:0000000180025AF0.text:0000000180025AF0.text:0000000180025AF0 sub_180025AF0   proc near               ; CODE XREF: sub_1800075A0+1Fp.text:0000000180025AF0                                         ; DATA XREF: .pdata:000000018008C404o ....text:0000000180025AF0.text:0000000180025AF0 var_28          = qword ptr -28h.text:0000000180025AF0 Src             = byte ptr -20h.text:0000000180025AF0 var_18          = qword ptr -18h.text:0000000180025AF0 arg_0           = qword ptr  8.text:0000000180025AF0.text:0000000180025AF0                 mov     [rsp+arg_0], rbx.text:0000000180025AF5                 push    rdi.text:0000000180025AF6                 sub     rsp, 50h.text:0000000180025AFA                 mov     rax, cs:__security_cookie.text:0000000180025B01                 xor     rax, rsp.text:0000000180025B04                 mov     [rsp+58h+var_18], rax.text:0000000180025B09                 mov     rax, 2E534E4946414Dh.text:0000000180025B13                 mov     rcx, 0D24D37CC275948CCh.text:0000000180025B1D                 mov     qword ptr [rsp+58h+Src], rax.text:0000000180025B22                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025B28                 lea     rcx, [rsp+58h+Src].text:0000000180025B2D                 call    cs:[email protected]@[email protected] ; nativePush64(unsigned __int64).text:0000000180025B33                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025B39                 cmp     dword ptr [rax], 7BD91C9Ah.text:0000000180025B3F                 jz      short loc_180025B4F.text:0000000180025B41                 or      ecx, 0FFFFFFFFh.text:0000000180025B44                 call    cs:[email protected]@[email protected] ; scriptWait(ulong).text:0000000180025B4A                 jmp     loc_180025BE5.text:0000000180025B4F ; ---------------------------------------------------------------------------.text:0000000180025B4F.text:0000000180025B4F loc_180025B4F:                          ; CODE XREF: sub_180025AF0+4Fj.text:0000000180025B4F                 xor     eax, eax.text:0000000180025B51                 lea     r8, Src         ; Src.text:0000000180025B58                 lea     rcx, Dst        ; Dst.text:0000000180025B5F                 lea     edx, [rax+45h]  ; SizeInBytes.text:0000000180025B62                 mov     cs:Dst, rax.text:0000000180025B69                 mov     cs:qword_1800895D8, rax.text:0000000180025B70                 mov     cs:qword_1800895E0, rax.text:0000000180025B77                 mov     cs:qword_1800895E8, rax.text:0000000180025B7E                 mov     cs:qword_1800895F0, rax.text:0000000180025B85                 mov     cs:qword_1800895F8, rax.text:0000000180025B8C                 mov     cs:qword_180089600, rax.text:0000000180025B93                 mov     cs:qword_180089608, rax.text:0000000180025B9A                 mov     cs:dword_180089610, eax.text:0000000180025BA0                 mov     cs:byte_180089614, al.text:0000000180025BA6                 call    strcpy_s.text:0000000180025BAB                 lea     r8, aObjectSpoonerV ; "Object Spooner v1.1.7 by ".text:0000000180025BB2                 lea     rcx, Dst        ; Dst.text:0000000180025BB9                 mov     edx, 45h        ; SizeInBytes.text:0000000180025BBE                 call    strcpy_s.text:0000000180025BC3                 lea     r8, [rsp+58h+Src] ; Src.text:0000000180025BC8                 lea     rcx, Dst        ; Dst.text:0000000180025BCF                 mov     edx, 45h        ; SizeInBytes.text:0000000180025BD4                 call    strcat_s.text:0000000180025BD9                 lea     rcx, Dst.text:0000000180025BE0                 call    sub_180005D60.text:0000000180025BE5.text:0000000180025BE5 loc_180025BE5:                          ; CODE XREF: sub_180025AF0+5Aj.text:0000000180025BE5                 lea     rax, dword_180088AD4.text:0000000180025BEC                 xor     edi, edi.text:0000000180025BEE                 mov     cs:dword_180085C40, 1.text:0000000180025BF8                 mov     cs:qword_180089728, rax.text:0000000180025BFF                 lea     rax, unk_180089740.text:0000000180025C06                 mov     cs:dword_1800895C8, edi.text:0000000180025C0C                 mov     edx, edi.text:0000000180025C0E                 lea     rcx, unk_180089764.text:0000000180025C15                 mov     cs:qword_180088A88, rax.text:0000000180025C1C                 nop     dword ptr [rax+00h].text:0000000180025C20.text:0000000180025C20 loc_180025C20:                          ; CODE XREF: sub_180025AF0+154j.text:0000000180025C20                 inc     edx.text:0000000180025C22                 mov     [rcx-24h], dil.text:0000000180025C26                 mov     [rcx-4], rdi.text:0000000180025C2A                 movsxd  rax, edx.text:0000000180025C2D                 mov     [rcx-0Ch], rdi.text:0000000180025C31                 mov     [rcx-14h], rdi.text:0000000180025C35                 mov     [rcx-20h], rdi.text:0000000180025C39                 mov     [rcx-18h], edi.text:0000000180025C3C                 lea     rcx, [rcx+28h].text:0000000180025C40                 cmp     rax, 8.text:0000000180025C44                 jb      short loc_180025C20.text:0000000180025C46                 mov     rbx, 0D80958FC74E988A6h.text:0000000180025C50                 mov     rcx, rbx.text:0000000180025C53                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C59                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025C5F                 mov     ecx, [rax].text:0000000180025C61                 call    sub_18000FD80.text:0000000180025C66                 lea     rcx, aRRBEGKOT  ; "~r~R~b~E~g~K~o~T".text:0000000180025C6D                 call    sub_180005CC0.text:0000000180025C72                 mov     rcx, rbx.text:0000000180025C75                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C7B                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025C81                 mov     rcx, 0D127585F77030AFh.text:0000000180025C8B                 mov     ebx, [rax].text:0000000180025C8D                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C93                 mov     [rsp+58h+var_28], rdi.text:0000000180025C98                 mov     dword ptr [rsp+58h+var_28], ebx.text:0000000180025C9C                 mov     rcx, [rsp+58h+var_28].text:0000000180025CA1                 call    cs:[email protected]@[email protected] ; nativePush64(unsigned __int64).text:0000000180025CA7                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025CAD                 movss   xmm2, cs:dword_180085BC0.text:0000000180025CB5                 mov     edx, [rax].text:0000000180025CB7                 call    sub_18002CAB0.text:0000000180025CBC                 mov     cs:byte_180085C74, dil.text:0000000180025CC3                 mov     rcx, [rsp+58h+var_18].text:0000000180025CC8                 xor     rcx, rsp        ; StackCookie.text:0000000180025CCB                 call    __security_check_cookie.text:0000000180025CD0                 mov     rbx, [rsp+58h+arg_0].text:0000000180025CD5                 add     rsp, 50h.text:0000000180025CD9                 pop     rdi.text:0000000180025CDA                 retn.text:0000000180025CDA sub_180025AF0   endp.text:0000000180025CDA.text:0000000180025CDA ; ---------------------------------------------------------------------------.text:0000000180025CDB algn_180025CDB:                         ; DATA XREF: .pdata:000000018008C410o.text:0000000180025CDB                 align 20h.text:0000000180025CE0
Link to comment
Share on other sites

 

GTA5%2B2015-05-23%2B10-55-10-911.jpg

 

What is this code that is in use?

0D24D37CC275948CC

0D80958FC74E988A6

; =============== S U B R O U T I N E =======================================.text:0000000180025AF0.text:0000000180025AF0.text:0000000180025AF0 sub_180025AF0   proc near               ; CODE XREF: sub_1800075A0+1Fp.text:0000000180025AF0                                         ; DATA XREF: .pdata:000000018008C404o ....text:0000000180025AF0.text:0000000180025AF0 var_28          = qword ptr -28h.text:0000000180025AF0 Src             = byte ptr -20h.text:0000000180025AF0 var_18          = qword ptr -18h.text:0000000180025AF0 arg_0           = qword ptr  8.text:0000000180025AF0.text:0000000180025AF0                 mov     [rsp+arg_0], rbx.text:0000000180025AF5                 push    rdi.text:0000000180025AF6                 sub     rsp, 50h.text:0000000180025AFA                 mov     rax, cs:__security_cookie.text:0000000180025B01                 xor     rax, rsp.text:0000000180025B04                 mov     [rsp+58h+var_18], rax.text:0000000180025B09                 mov     rax, 2E534E4946414Dh.text:0000000180025B13                 mov     rcx, 0D24D37CC275948CCh.text:0000000180025B1D                 mov     qword ptr [rsp+58h+Src], rax.text:0000000180025B22                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025B28                 lea     rcx, [rsp+58h+Src].text:0000000180025B2D                 call    cs:[email protected]@[email protected] ; nativePush64(unsigned __int64).text:0000000180025B33                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025B39                 cmp     dword ptr [rax], 7BD91C9Ah.text:0000000180025B3F                 jz      short loc_180025B4F.text:0000000180025B41                 or      ecx, 0FFFFFFFFh.text:0000000180025B44                 call    cs:[email protected]@[email protected] ; scriptWait(ulong).text:0000000180025B4A                 jmp     loc_180025BE5.text:0000000180025B4F ; ---------------------------------------------------------------------------.text:0000000180025B4F.text:0000000180025B4F loc_180025B4F:                          ; CODE XREF: sub_180025AF0+4Fj.text:0000000180025B4F                 xor     eax, eax.text:0000000180025B51                 lea     r8, Src         ; Src.text:0000000180025B58                 lea     rcx, Dst        ; Dst.text:0000000180025B5F                 lea     edx, [rax+45h]  ; SizeInBytes.text:0000000180025B62                 mov     cs:Dst, rax.text:0000000180025B69                 mov     cs:qword_1800895D8, rax.text:0000000180025B70                 mov     cs:qword_1800895E0, rax.text:0000000180025B77                 mov     cs:qword_1800895E8, rax.text:0000000180025B7E                 mov     cs:qword_1800895F0, rax.text:0000000180025B85                 mov     cs:qword_1800895F8, rax.text:0000000180025B8C                 mov     cs:qword_180089600, rax.text:0000000180025B93                 mov     cs:qword_180089608, rax.text:0000000180025B9A                 mov     cs:dword_180089610, eax.text:0000000180025BA0                 mov     cs:byte_180089614, al.text:0000000180025BA6                 call    strcpy_s.text:0000000180025BAB                 lea     r8, aObjectSpoonerV ; "Object Spooner v1.1.7 by ".text:0000000180025BB2                 lea     rcx, Dst        ; Dst.text:0000000180025BB9                 mov     edx, 45h        ; SizeInBytes.text:0000000180025BBE                 call    strcpy_s.text:0000000180025BC3                 lea     r8, [rsp+58h+Src] ; Src.text:0000000180025BC8                 lea     rcx, Dst        ; Dst.text:0000000180025BCF                 mov     edx, 45h        ; SizeInBytes.text:0000000180025BD4                 call    strcat_s.text:0000000180025BD9                 lea     rcx, Dst.text:0000000180025BE0                 call    sub_180005D60.text:0000000180025BE5.text:0000000180025BE5 loc_180025BE5:                          ; CODE XREF: sub_180025AF0+5Aj.text:0000000180025BE5                 lea     rax, dword_180088AD4.text:0000000180025BEC                 xor     edi, edi.text:0000000180025BEE                 mov     cs:dword_180085C40, 1.text:0000000180025BF8                 mov     cs:qword_180089728, rax.text:0000000180025BFF                 lea     rax, unk_180089740.text:0000000180025C06                 mov     cs:dword_1800895C8, edi.text:0000000180025C0C                 mov     edx, edi.text:0000000180025C0E                 lea     rcx, unk_180089764.text:0000000180025C15                 mov     cs:qword_180088A88, rax.text:0000000180025C1C                 nop     dword ptr [rax+00h].text:0000000180025C20.text:0000000180025C20 loc_180025C20:                          ; CODE XREF: sub_180025AF0+154j.text:0000000180025C20                 inc     edx.text:0000000180025C22                 mov     [rcx-24h], dil.text:0000000180025C26                 mov     [rcx-4], rdi.text:0000000180025C2A                 movsxd  rax, edx.text:0000000180025C2D                 mov     [rcx-0Ch], rdi.text:0000000180025C31                 mov     [rcx-14h], rdi.text:0000000180025C35                 mov     [rcx-20h], rdi.text:0000000180025C39                 mov     [rcx-18h], edi.text:0000000180025C3C                 lea     rcx, [rcx+28h].text:0000000180025C40                 cmp     rax, 8.text:0000000180025C44                 jb      short loc_180025C20.text:0000000180025C46                 mov     rbx, 0D80958FC74E988A6h.text:0000000180025C50                 mov     rcx, rbx.text:0000000180025C53                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C59                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025C5F                 mov     ecx, [rax].text:0000000180025C61                 call    sub_18000FD80.text:0000000180025C66                 lea     rcx, aRRBEGKOT  ; "~r~R~b~E~g~K~o~T".text:0000000180025C6D                 call    sub_180005CC0.text:0000000180025C72                 mov     rcx, rbx.text:0000000180025C75                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C7B                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025C81                 mov     rcx, 0D127585F77030AFh.text:0000000180025C8B                 mov     ebx, [rax].text:0000000180025C8D                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C93                 mov     [rsp+58h+var_28], rdi.text:0000000180025C98                 mov     dword ptr [rsp+58h+var_28], ebx.text:0000000180025C9C                 mov     rcx, [rsp+58h+var_28].text:0000000180025CA1                 call    cs:[email protected]@[email protected] ; nativePush64(unsigned __int64).text:0000000180025CA7                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025CAD                 movss   xmm2, cs:dword_180085BC0.text:0000000180025CB5                 mov     edx, [rax].text:0000000180025CB7                 call    sub_18002CAB0.text:0000000180025CBC                 mov     cs:byte_180085C74, dil.text:0000000180025CC3                 mov     rcx, [rsp+58h+var_18].text:0000000180025CC8                 xor     rcx, rsp        ; StackCookie.text:0000000180025CCB                 call    __security_check_cookie.text:0000000180025CD0                 mov     rbx, [rsp+58h+arg_0].text:0000000180025CD5                 add     rsp, 50h.text:0000000180025CD9                 pop     rdi.text:0000000180025CDA                 retn.text:0000000180025CDA sub_180025AF0   endp.text:0000000180025CDA.text:0000000180025CDA ; ---------------------------------------------------------------------------.text:0000000180025CDB algn_180025CDB:                         ; DATA XREF: .pdata:000000018008C410o.text:0000000180025CDB                 align 20h.text:0000000180025CE0
Native::Function::Call(Native::Hash::_0x202709F4C58A0424, "STRING");Native::Function::Call(Native::Hash::_ADD_TEXT_COMPONENT_STRING, msg);Native::Function::Call(Native::Hash::_0x2ED7843F8F801023, 0, 1);

More informations : https://github.com/crosire/scripthookvdotnet/blob/master/source/UI.cpp

Link to comment
Share on other sites

First of all, thank you very much Alexander Blade for making this, the trainer is godsent for people who want to make movies in GTA V. Only thing that I'd like to be added to the trainer, if possible, is to allow us to play with our online characters. In singleplayer you can't for example shoot yourself, smoke, drink, etc. so this would allow us to record parts in SP and parts in online and cut those recordings together.

Edited by Kayttaja
Link to comment
Share on other sites

 

 

GTA5%2B2015-05-23%2B10-55-10-911.jpg

 

What is this code that is in use?

0D24D37CC275948CC

0D80958FC74E988A6

; =============== S U B R O U T I N E =======================================.text:0000000180025AF0.text:0000000180025AF0.text:0000000180025AF0 sub_180025AF0   proc near               ; CODE XREF: sub_1800075A0+1Fp.text:0000000180025AF0                                         ; DATA XREF: .pdata:000000018008C404o ....text:0000000180025AF0.text:0000000180025AF0 var_28          = qword ptr -28h.text:0000000180025AF0 Src             = byte ptr -20h.text:0000000180025AF0 var_18          = qword ptr -18h.text:0000000180025AF0 arg_0           = qword ptr  8.text:0000000180025AF0.text:0000000180025AF0                 mov     [rsp+arg_0], rbx.text:0000000180025AF5                 push    rdi.text:0000000180025AF6                 sub     rsp, 50h.text:0000000180025AFA                 mov     rax, cs:__security_cookie.text:0000000180025B01                 xor     rax, rsp.text:0000000180025B04                 mov     [rsp+58h+var_18], rax.text:0000000180025B09                 mov     rax, 2E534E4946414Dh.text:0000000180025B13                 mov     rcx, 0D24D37CC275948CCh.text:0000000180025B1D                 mov     qword ptr [rsp+58h+Src], rax.text:0000000180025B22                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025B28                 lea     rcx, [rsp+58h+Src].text:0000000180025B2D                 call    cs:[email protected]@[email protected] ; nativePush64(unsigned __int64).text:0000000180025B33                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025B39                 cmp     dword ptr [rax], 7BD91C9Ah.text:0000000180025B3F                 jz      short loc_180025B4F.text:0000000180025B41                 or      ecx, 0FFFFFFFFh.text:0000000180025B44                 call    cs:[email protected]@[email protected] ; scriptWait(ulong).text:0000000180025B4A                 jmp     loc_180025BE5.text:0000000180025B4F ; ---------------------------------------------------------------------------.text:0000000180025B4F.text:0000000180025B4F loc_180025B4F:                          ; CODE XREF: sub_180025AF0+4Fj.text:0000000180025B4F                 xor     eax, eax.text:0000000180025B51                 lea     r8, Src         ; Src.text:0000000180025B58                 lea     rcx, Dst        ; Dst.text:0000000180025B5F                 lea     edx, [rax+45h]  ; SizeInBytes.text:0000000180025B62                 mov     cs:Dst, rax.text:0000000180025B69                 mov     cs:qword_1800895D8, rax.text:0000000180025B70                 mov     cs:qword_1800895E0, rax.text:0000000180025B77                 mov     cs:qword_1800895E8, rax.text:0000000180025B7E                 mov     cs:qword_1800895F0, rax.text:0000000180025B85                 mov     cs:qword_1800895F8, rax.text:0000000180025B8C                 mov     cs:qword_180089600, rax.text:0000000180025B93                 mov     cs:qword_180089608, rax.text:0000000180025B9A                 mov     cs:dword_180089610, eax.text:0000000180025BA0                 mov     cs:byte_180089614, al.text:0000000180025BA6                 call    strcpy_s.text:0000000180025BAB                 lea     r8, aObjectSpoonerV ; "Object Spooner v1.1.7 by ".text:0000000180025BB2                 lea     rcx, Dst        ; Dst.text:0000000180025BB9                 mov     edx, 45h        ; SizeInBytes.text:0000000180025BBE                 call    strcpy_s.text:0000000180025BC3                 lea     r8, [rsp+58h+Src] ; Src.text:0000000180025BC8                 lea     rcx, Dst        ; Dst.text:0000000180025BCF                 mov     edx, 45h        ; SizeInBytes.text:0000000180025BD4                 call    strcat_s.text:0000000180025BD9                 lea     rcx, Dst.text:0000000180025BE0                 call    sub_180005D60.text:0000000180025BE5.text:0000000180025BE5 loc_180025BE5:                          ; CODE XREF: sub_180025AF0+5Aj.text:0000000180025BE5                 lea     rax, dword_180088AD4.text:0000000180025BEC                 xor     edi, edi.text:0000000180025BEE                 mov     cs:dword_180085C40, 1.text:0000000180025BF8                 mov     cs:qword_180089728, rax.text:0000000180025BFF                 lea     rax, unk_180089740.text:0000000180025C06                 mov     cs:dword_1800895C8, edi.text:0000000180025C0C                 mov     edx, edi.text:0000000180025C0E                 lea     rcx, unk_180089764.text:0000000180025C15                 mov     cs:qword_180088A88, rax.text:0000000180025C1C                 nop     dword ptr [rax+00h].text:0000000180025C20.text:0000000180025C20 loc_180025C20:                          ; CODE XREF: sub_180025AF0+154j.text:0000000180025C20                 inc     edx.text:0000000180025C22                 mov     [rcx-24h], dil.text:0000000180025C26                 mov     [rcx-4], rdi.text:0000000180025C2A                 movsxd  rax, edx.text:0000000180025C2D                 mov     [rcx-0Ch], rdi.text:0000000180025C31                 mov     [rcx-14h], rdi.text:0000000180025C35                 mov     [rcx-20h], rdi.text:0000000180025C39                 mov     [rcx-18h], edi.text:0000000180025C3C                 lea     rcx, [rcx+28h].text:0000000180025C40                 cmp     rax, 8.text:0000000180025C44                 jb      short loc_180025C20.text:0000000180025C46                 mov     rbx, 0D80958FC74E988A6h.text:0000000180025C50                 mov     rcx, rbx.text:0000000180025C53                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C59                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025C5F                 mov     ecx, [rax].text:0000000180025C61                 call    sub_18000FD80.text:0000000180025C66                 lea     rcx, aRRBEGKOT  ; "~r~R~b~E~g~K~o~T".text:0000000180025C6D                 call    sub_180005CC0.text:0000000180025C72                 mov     rcx, rbx.text:0000000180025C75                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C7B                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025C81                 mov     rcx, 0D127585F77030AFh.text:0000000180025C8B                 mov     ebx, [rax].text:0000000180025C8D                 call    cs:[email protected]@[email protected] ; nativeInit(unsigned __int64).text:0000000180025C93                 mov     [rsp+58h+var_28], rdi.text:0000000180025C98                 mov     dword ptr [rsp+58h+var_28], ebx.text:0000000180025C9C                 mov     rcx, [rsp+58h+var_28].text:0000000180025CA1                 call    cs:[email protected]@[email protected] ; nativePush64(unsigned __int64).text:0000000180025CA7                 call    cs:[email protected]@YAPEA_KXZ ; nativeCall(void).text:0000000180025CAD                 movss   xmm2, cs:dword_180085BC0.text:0000000180025CB5                 mov     edx, [rax].text:0000000180025CB7                 call    sub_18002CAB0.text:0000000180025CBC                 mov     cs:byte_180085C74, dil.text:0000000180025CC3                 mov     rcx, [rsp+58h+var_18].text:0000000180025CC8                 xor     rcx, rsp        ; StackCookie.text:0000000180025CCB                 call    __security_check_cookie.text:0000000180025CD0                 mov     rbx, [rsp+58h+arg_0].text:0000000180025CD5                 add     rsp, 50h.text:0000000180025CD9                 pop     rdi.text:0000000180025CDA                 retn.text:0000000180025CDA sub_180025AF0   endp.text:0000000180025CDA.text:0000000180025CDA ; ---------------------------------------------------------------------------.text:0000000180025CDB algn_180025CDB:                         ; DATA XREF: .pdata:000000018008C410o.text:0000000180025CDB                 align 20h.text:0000000180025CE0

 

 

Native::Function::Call(Native::Hash::_0x202709F4C58A0424, "STRING");Native::Function::Call(Native::Hash::_ADD_TEXT_COMPONENT_STRING, msg);Native::Function::Call(Native::Hash::_0x2ED7843F8F801023, 0, 1);
More informations : https://github.com/crosire/scripthookvdotnet/blob/master/source/UI.cpp

 

Or simply install the ScriptHookV .net and type (in C# or VB)

UI.Notify("Your text here");
Edited by Cyron43
Link to comment
Share on other sites

I am really really interested in transforming into an animal while playing online with friends.... But it says the script doesn't allow it.

How can I do that? Please help! D: I enjoy being an animal...

Link to comment
Share on other sites

I am really really interested in transforming into an animal while playing online with friends.... But it says the script doesn't allow it.

How can I do that? Please help! D: I enjoy being an animal...

tough, get use to playing online without scripts, because it isnt going to happen. People on IV ruined it because people would rather troll than play the game in a fair way. Thank all the children out there.

Edited by c39687
Link to comment
Share on other sites

Hi, does anyone know how to use

UI::SET_BLIP_NAME_TO_PLAYER_NAME(any1, any2);

Any1 is the blip itself, but when setting any2, the blips names is **invalid**

Edited by baba0rum
Link to comment
Share on other sites

Hi, does anyone know how to use

UI::SET_BLIP_NAME_TO_PLAYER_NAME(any1, any2);

Replace any2 by Player's ped, maybe ?

 

Try with Trevor,

Link to comment
Share on other sites

 

Hi, does anyone know how to use

UI::SET_BLIP_NAME_TO_PLAYER_NAME(any1, any2);

Replace any2 by Player's ped, maybe ?

 

Try with Trevor,

 

 

The thing i would like is to set a custom text for the blip, and the only thing i get is **invalid**

Link to comment
Share on other sites

GTAGeek123

AB,

 

Would it be possible for you to go ahead and release a version of the of the Scripthook.dll that just addresses the 19 asi mod limit issue (would be like a quick hotfix kind of thing), or would it be possible to at least tell us if there is a way to fix it ourselves? I know you are working on a new version of the Scripthook (and we all appreciate it), but as more and more asi mods come out the more and more people will have the issue (and it is kind of a bad issue as old save games won't load once the limit has been breached either).

Edited by GTAGeek123
  • Like 1
Link to comment
Share on other sites

Someone please help. I have installed Open IV but when it asks me what folder my game is in, I enter where but it tells me, “this folder does not exist.”. Um, yes it does. I don’t get it. The GTAV.exe is in the damn folder. I have even tried running as administrator.

Edited by MordeksX
Link to comment
Share on other sites

Someone please help. I have installed Open IV but when it asks me what folder my game is in, I enter where but it tells me, “this folder does not exist.”. Um, yes it does. I don’t get it. The GTAV.exe is in the damn folder. I have even tried running as administrator.

you are selecting the wrong folder or else it would find the gta files. Just select the folder... maybe if you navigate into the directory it is looking inside a folder selected there which would cause the error

Edited by c39687
Link to comment
Share on other sites

Does someone know if there is a possibility to identify objects uniquely?

For example 2 equal cars. Is there an id or something to identify them?

 

Thanks!

Link to comment
Share on other sites

stanleythedog

I don't know if this has been brought up (92 pages...), but when I first used this it worked fine, but now I can't scroll at all. F4 brings up the menu, but that's it. I tried deleting the files and putting them back in and restarting the game, but it didn't work. Any help?

Link to comment
Share on other sites

Alexander Blade

I don't know if this has been brought up (92 pages...), but when I first used this it worked fine, but now I can't scroll at all. F4 brings up the menu, but that's it. I tried deleting the files and putting them back in and restarting the game, but it didn't work. Any help?

Read 1 post please

Link to comment
Share on other sites

The native trainer plugin causes the game to crash within 10 minutes pretty consistently (uninstalling it fixes the crash issue). I'm playing GTA5 version 1.0.350.1 on windows 7 Home Premium x64. The logs are not showing anything useful, but here they are:

 

scripthook log: https://gist.github.com/nug700/e690060eec1001ae8c06

asiloader log: https://gist.github.com/nug700/add86c9462109285f4f2

softwar: https://gist.github.com/nug700/763888f502e6b75355f0

Link to comment
Share on other sites

 

Someone please help. I have installed Open IV but when it asks me what folder my game is in, I enter where but it tells me, “this folder does not exist.”. Um, yes it does. I don’t get it. The GTAV.exe is in the damn folder. I have even tried running as administrator.

you are selecting the wrong folder or else it would find the gta files. Just select the folder... maybe if you navigate into the directory it is looking inside a folder selected there which would cause the error

 

I can literally pull up another window beside this and SEE the .exe file in the folder I have selected. I have even attempted to choose every folder that is associated with GTAV and it says the same thing. I asked the same question on a youtube video that is showing OpenIV and someone else said they have the same problem.

Link to comment
Share on other sites

 

 

Someone please help. I have installed Open IV but when it asks me what folder my game is in, I enter where but it tells me, “this folder does not exist.”. Um, yes it does. I don’t get it. The GTAV.exe is in the damn folder. I have even tried running as administrator.

you are selecting the wrong folder or else it would find the gta files. Just select the folder... maybe if you navigate into the directory it is looking inside a folder selected there which would cause the error

 

I can literally pull up another window beside this and SEE the .exe file in the folder I have selected. I have even attempted to choose every folder that is associated with GTAV and it says the same thing. I asked the same question on a youtube video that is showing OpenIV and someone else said they have the same problem.

take a screen shot and show us the folder selection dialog with what you selected BEFORE you press OK, because it should be straightforward. I doubt something so simple is bugged in the app itself.

Edited by c39687
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.