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

    1. Red Dead Redemption 2

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

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

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

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

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

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

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

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

      1. Merchandising
    1. GTA Modding

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

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

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

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

aru

[GTAIV|REL|SRC] C++ Script Hook

Recommended Posts

DeathFrogg

Every download link broken.

 

Anyway...

I am trying to find the right scripthook.dll + scripthookdotnet.asi to run both trainer and real traffic spawn.

 

None of the scripthooks seem to work except the ones which come with the downloads.

 

I want a scripthook which will work with both trainer and real traffic spawn.

 

Game Version 1.0.4.0

 

Suggestions?

 

EDIT: I think the problem is that one uses a C++ scripthook.dll and the other doesn't..?

Edited by DeathFrogg

Share this post


Link to post
Share on other sites
Kucikuc24
But you could of course do the work yourself, instead of expecting other people to do the work for you.

It's not really difficult either, you just need to use ints, and do a trial and error to see which pickups are which smile.gif

WTF ? work for me ? bullsh*ts...this is Aru´s script hook, Aru´s work and pickups and other thinks missing him...

so i can still trying, but i really dont have a lot of time...

Share this post


Link to post
Share on other sites
sjaak327
But you could of course do the work yourself, instead of expecting other people to do the work for you.

It's not really difficult either, you just need to use ints, and do a trial and error to see which pickups are which smile.gif

WTF ? work for me ? bullsh*ts...this is Aru´s script hook, Aru´s work and pickups and other thinks missing him...

so i can still trying, but i really dont have a lot of time...

And you recon he does have the time ? He provided us with a working scritphook, he has no obligation whatsoever to also document the whole game...

 

 

Share this post


Link to post
Share on other sites
Kucikuc24

0k sjaak how you think...can you tell me how i can get that ****** pickup ?

Share this post


Link to post
Share on other sites
Hypertenzion

 

Every download link broken.

 

Anyway...

I am trying to find the right scripthook.dll + scripthookdotnet.asi to run both trainer and real traffic spawn.

 

None of the scripthooks seem to work except the ones which come with the downloads.

 

I want a scripthook which will work with both trainer and real traffic spawn.

 

Game Version 1.0.4.0

 

Suggestions?

 

EDIT: I think the problem is that one uses a C++ scripthook.dll and the other doesn't..?

I have the somehow same problem.

 

I use:

- GTA IV 1.0.4.0 (ENBseries addicted)

- .NET Scripthook v1.7.1.6

- C++ Scripthook 0.4.0

 

I experience problems when using mods (LCPD First response, Trainers etc.) Because of the old C++ Scripthook.

 

If I try to use C++ Scripthook 0.5.0 or 0.5.1 the game crashes (They aren't compatible with GTA IV 1.0.4.0 - I know)

 

Is there a possibility that compatibility between C++ Scripthook 0.5.1 and GTA IV 1.0.4.0 could be made?

 

When I use:

- GTA IV 1.0.6.0 (1.0.7.0 Is the newest)

- .NET Scripthook v1.7.1.6 (Newest)

- C++ Scripthook 0.5.1 (Newest)

 

I experience NO problems at all, except that I can't use ENBseries, which is why I want this to work on 1.0.4.0.

Edited by Hypertenzion

Share this post


Link to post
Share on other sites
sjaak327

You could always use an older version of scripthook, and an older version of first response, or whatever trainer you are trying to use.

 

Allthough most trainers based upon this hook will just work with the older scripthook.dll.

 

 

Share this post


Link to post
Share on other sites
Hypertenzion

 

You could always use an older version of scripthook, and an older version of first response, or whatever trainer you are trying to use.

 

Allthough most trainers based upon this hook will just work with the older scripthook.dll.

An older version of C++ Scripthook is not an option, since the mods I use, use the newest (0.5.1). Neither is using older version of mods (buggy and lacking features).

 

If 0.5.1 were compatible with older versions of GTA (1.0.3.0+1.0.4.0) we would all be able to enjoy our mods.

Edited by Hypertenzion

Share this post


Link to post
Share on other sites
dukee152

anyone why is the server not up?

Share this post


Link to post
Share on other sites
Kucikuc24

hi pls how i can unlock car doors ?

Share this post


Link to post
Share on other sites
Intosia

 

hi pls how i can unlock car doors ?

Player.Character.CurrentVehicle.Door(VehicleDoor.LeftRear).Open()

 

change, LeftRear to other doors.

 

EDIT: Oops C++ thread sleepy.gif

Edited by Intosia

Share this post


Link to post
Share on other sites
Kucikuc24

i mean in C++ and i dont see native for it :l

Share this post


Link to post
Share on other sites
Donny78

The native is "LOCK_CAR_DOORS".

Share this post


Link to post
Share on other sites
Kucikuc24

but what with it ? i tried !LockCarDoor(blaaaah) or ((LockCarDoor(blaah))==false) but error sad.gif...or when i use this native when doors are lcoked can unlock it ?

Share this post


Link to post
Share on other sites
Donny78

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).

Share this post


Link to post
Share on other sites
whataulooknat

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

 

Share this post


Link to post
Share on other sites
whataulooknat

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

 

Share this post


Link to post
Share on other sites
Donny78

Sorry dude I don't know then, try googling the error line.

Share this post


Link to post
Share on other sites
whataulooknat

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

Share this post


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

 

 

Share this post


Link to post
Share on other sites
Kucikuc24

pls when i have freezed position, how i can go straight to coordinates, where i have headed ?

Share this post


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

Share this post


Link to post
Share on other sites
Kucikuc24

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

 

Share this post


Link to post
Share on other sites
Kalembas

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

Share this post


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

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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