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

C++ Script Hook


aru
 Share

Recommended Posts

I don't know how in that language (been too long since I used it) but there is an example of it's parameters in the natives list on gtamodding (values for lock setting).

Link to comment
Share on other sites

None of my mods are working using latest xliveless for an .asi loader. All my Asi say Error loading library 126 in the xliveless text file. I'm assuming is because of this

 

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[iNFO] Using game version 1.0.7

[iNFO] Script Hook - Shutdown

 

Link to comment
Share on other sites

Still the same thing

 

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[iNFO] Using game version 1.0.7

[iNFO] Script Hook - Shutdown

 

10/09/2010 14:50:40.796 Log started (xliveless 0.999b7)

10/09/2010 14:50:40.796 GetModuleHandle returns 00400000

10/09/2010 14:50:40.796 [EXE] unprotecting section '.text': addr = 0x00001000, size = 0x0094c000

10/09/2010 14:50:40.796 [EXE] unprotecting section '.rdata': addr = 0x0094d000, size = 0x001bf000

10/09/2010 14:50:40.796 Patching OK (1.0.7.0 - update 7)

10/09/2010 14:50:40.796 Error loading library 126

10/09/2010 14:50:40.796 plugin loader: loaded 'SpeedoIV.asi'

10/09/2010 14:50:41.093 XLiveInitializeEx

10/09/2010 14:50:41.093 XNetStartup

10/09/2010 14:50:41.093 XWSAStartup

10/09/2010 14:50:45.390 XLiveOnCreateDevice

10/09/2010 14:50:45.390 XOnlineStartup

10/09/2010 14:50:45.390 xlive_5270: XNotifyCreateListener (0x0000000000000001)

10/09/2010 14:50:45.390 xlive_5270: XNotifyCreateListener (0x0000000000000007)

10/09/2010 14:50:45.390 xlive_5263: XUserGetName (0, .. , 16)

10/09/2010 14:50:45.390 xlive_5263: XUserGetName (0, .. , 16)

10/09/2010 14:50:45.390 xlive_5270: XNotifyCreateListener (0x0000000000000001)

10/09/2010 14:50:45.390 xlive_5270: XNotifyCreateListener (0x0000000000000002)

10/09/2010 14:50:45.609 XNotifyPositionUI (1)

10/09/2010 14:50:48.156 xlive_5270: XNotifyCreateListener (0x0000000000000001)

10/09/2010 14:51:07.937 xlive_5263: XUserGetName (0, .. , 16)

10/09/2010 14:51:07.937 xlive_5263: XUserGetName (0, .. , 16)

10/09/2010 14:51:07.937 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\'

10/09/2010 14:51:07.953 XLiveContentCreateEnumerator

10/09/2010 14:51:07.953 XEnumerate (buffer=> 016C9B70[-1996083048])

10/09/2010 14:51:07.968 XUserSetContextEx

10/09/2010 14:51:07.968 XGetOverlappedExtendedError

10/09/2010 14:51:08.015 XUserReadProfileSettings (0, 0, 8, ..., 0, ...)

10/09/2010 14:51:08.015 XUserReadProfileSettings (0, 0, 8, ..., 1036, ...)

10/09/2010 14:51:08.015 XUserCreateAchievementEnumerator (dwStartingIndex=>0, cItem=>80

10/09/2010 14:51:08.031 XGetOverlappedResult

10/09/2010 14:51:08.031 XCreateSocket (2, 2, 254)

10/09/2010 14:51:10.687 XUserSetContextEx

10/09/2010 14:51:10.687 XGetOverlappedExtendedError

10/09/2010 14:51:12.359 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\'

10/09/2010 14:51:12.515 XUserWriteProfileSettings

10/09/2010 14:51:12.531 XGetOverlappedResult

10/09/2010 14:51:12.562 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames'

10/09/2010 14:51:12.562 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\ControlMap.dat'

10/09/2010 14:51:12.562 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA400'

10/09/2010 14:51:12.562 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA412'

10/09/2010 14:51:12.734 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA400'

10/09/2010 14:51:12.734 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA400'

10/09/2010 14:51:12.843 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA412'

10/09/2010 14:51:12.843 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA412'

10/09/2010 14:51:13.062 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames'

10/09/2010 14:51:13.062 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\ControlMap.dat'

10/09/2010 14:51:13.062 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA400'

10/09/2010 14:51:13.062 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA412'

10/09/2010 14:51:13.109 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA412'

10/09/2010 14:51:13.218 [getSavefilePath]: 'C:\Documents and Settings\Farmer\My Documents\Rockstar Games\GTA IV\savegames\SGTA412'

10/09/2010 14:51:13.218 XLiveCreateProtectedDataContext

10/09/2010 14:51:13.218 XLiveQueryProtectedDataInformation

10/09/2010 14:51:13.218 XLiveUnprotectData (..., 360, ..., 0, 1)

10/09/2010 14:51:13.218 XLiveUnprotectData (..., 360, ..., 12, 1)

10/09/2010 14:51:13.218 XLiveCloseProtectedDataContext

10/09/2010 14:51:26.031 XTitleServerCreateEnumerator (cItem=> 8)

10/09/2010 14:51:31.140 XUserSetContext

10/09/2010 14:51:31.140 XUserSetContext

10/09/2010 14:51:31.140 XUserSetContextEx

10/09/2010 14:51:31.140 XGetOverlappedExtendedError

10/09/2010 14:51:31.140 XUserSetContext

10/09/2010 14:51:31.140 XUserSetContext

10/09/2010 14:51:31.140 XUserSetContextEx

10/09/2010 14:51:31.140 XGetOverlappedExtendedError

10/09/2010 14:51:57.218 XCloseHandle

10/09/2010 14:51:57.218 XCloseHandle

10/09/2010 14:51:57.218 XOnlineCleanup

10/09/2010 14:52:00.156 XLiveUninitialize

10/09/2010 14:52:00.156 XWSACleanup

10/09/2010 14:52:00.156 xlive_52: XNetCleanup

 

Link to comment
Share on other sites

all i'm finding is error 126 means it cannot be found. but I followed the instructions exactly and everything is where its supposed to be. I think its because the script hook keeps shutting down.

 

*Edit* I noticed if i rename the scripthook.dll scripthook.asi it shows up

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[iNFO] Using game version 1.0.7

[iNFO] Script Hook - Shutdown

 

but when i leave it scripthook.dll The notepad stays blank and the scripthook never loads at all

Edited by whataulooknat
Link to comment
Share on other sites

all i'm finding is error 126 means it cannot be found. but I followed the instructions exactly and everything is where its supposed to be. I think its because the script hook keeps shutting down.

 

*Edit* I noticed if i rename the scripthook.dll scripthook.asi it shows up

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[iNFO] Using game version 1.0.7

[iNFO] Script Hook - Shutdown

 

but when i leave it scripthook.dll The notepad stays blank and the scripthook never loads at all

It will only load if you use a mod (asi) that actually invokes the scripthook.dll.

 

 

Link to comment
Share on other sites

all i'm finding is error 126 means it cannot be found. but I followed the instructions exactly and everything is where its supposed to be.  I think its because the script hook keeps shutting down.

 

*Edit*  I noticed if i rename the scripthook.dll scripthook.asi it shows up

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[iNFO] Using game version 1.0.7

[iNFO] Script Hook - Shutdown

 

but when i leave it scripthook.dll The notepad stays blank and the scripthook never loads at all

It will only load if you use a mod (asi) that actually invokes the scripthook.dll.

ok the mod i'm trying to use is speedoIV. For some reason it won't work. I downloaded a trainer and it is working fine now but i just can't get speedoIV to work. Is there something i'm missing?

Link to comment
Share on other sites

hi everybody pls can i display for example car speed with this native ?: DisplayTextWithFloat

 

i think:

 

GetCarSpeed(vehicle, &speed);DisplayTextWithFloat(1.0f, 1.0f, "NUMBER", speed, 1);

 

Link to comment
Share on other sites

Hey, guys!

Where can I find new "MODEL_..."s and "WEAPON_..."s for hook enumerators, which were added in TLAD & TBOGT? I mean enumerator elements for new vehicles, weapons etc?

The "ScriptingEnum.h" from 0.4.0 SDK (which still normally works with 0.5.1 redist, though), obviously doesnt contain them.

Edited by Kalembas
Link to comment
Share on other sites

Hey, guys!

Where can I find new "MODEL_..."s and "WEAPON_..."s for hook enumerators, which were added in TLAD & TBOGT? I mean enumerator elements for new vehicles, weapons etc?

The "ScriptingEnum.h" from 0.4.0 SDK (which still normally works with 0.5.1 redist, though), obviously doesnt contain them.

Click here

Link to comment
Share on other sites

your download link from the first page isn't working for me.

 

it says: The requested URL /gta4/GTAIVScriptHook_0.5.1_Redist.zip was not found on this server.

Link to comment
Share on other sites

hi pls i have problem with

TaskOpenPassengerDoor(Ped ped, Vehicle vehicle, u32 seatIndex, u32 unknown0)

 

i tried change unknown to 0,1 and 5000, but nothink happen...can you help me pls ?

Link to comment
Share on other sites

@Kucikuc24

 

 

I posted links that do work on page 77

Is it that hard to read?!

yeah i have it by yesterday from there...now i dont understand, why you dont wrote think, what was subject of my post...

Link to comment
Share on other sites

GTA IV player
I posted links that do work on page 77

Thanks man!you rock!

 

By the way i can't get the Simple Native In-Game Trainer for GTA IV 1.0.7.0

but can work it on EFLC?With the files required(I just put everything in each smile.gif )?

Link to comment
Share on other sites

  • 3 weeks later...

The link for 5.1 doesn't seem to be working right now, I'll be glad when it gets working again.

 

EDIT: Actually none of them work, so if somebody would post me a link to a mirror for the download I would appeciate it.

EDIT2: Found one here.

Edited by cameron195
Link to comment
Share on other sites

ive been using this stuff for ages, no problems, but i recently bought eflc, patched to 1.1.2.0, scripthook 0.5.1, xliveless, had to use a no-cd coz the only drive in my house is on the network. feel free to say im a pirate or liar or whatever, i dont care.

 

the problem i have is:

 

Log start: Wed Oct 27 13:42:29 2010

-----------------------------------------------

[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized

[iNFO] Process base address: 0x400000

[iNFO] Auto detecting game version

[FATAL] Failed to detect game version

 

 

 

 

now ENB series works, and no its not interfering coz ive tried without ENB.

 

could it be the no-cd?

Link to comment
Share on other sites

hi pls when i will SetCharHealth of closest ped to 0, why my game will crash ?

Because GetClosestPed returnrs Null when no ped is found. Always check if the return value is not Null. Or you get a nullpointer exeption.

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

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

×
×
  • Create New...

Important Information

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