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 can't declare strings because this is an undefined identifier... what should I do then? Define it?

Yes.

 

Something like:

 

const ch *String="blah";

 

 

 

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

I have a little problem. I'm trying to use this inGame trainer, but it will crash my gta ;0 I've installed Asi loader and this Script Hook right but it will give me "gta iv has stopped working" -error. There's nothing special in asilog, but in script hook log there's this text:

 

 

Log start: Thu Aug 19 21:10:56 2010-----------------------------------------------[iNFO] GTA IV Script Hook 0.5.1 - © 2009, Aru - Initialized[iNFO] Process base address: 0xee0000[iNFO] Auto detecting game version[iNFO] Using game version 1.0.3[iNFO] [inGame Trainer] Thread started[WARN] [inGame Trainer] Thread instance is being deleted while still hooked[iNFO] [inGame Trainer] Thread killed[iNFO] Script Hook - Shutdown

 

 

without ingamer trainer files in my gta directory it doesn't crash. I've tried this with 1.5.0 version of script hook also but it doesn't work either sad.gif I have no idea what's wrong here and why does it keeps crashing dozingoff.gif Anybody has any ideas?

 

Sorry for my english biggrin.gif

 

problem solved with an older version of script hook :0

Edited by woncler
Link to comment
Share on other sites

aach next kinda stupid...i tell it again: SCRIPT HOOK 0.5.1 IS ONLY FOR 7. PATCH AND EFLC 1. PATCH !

Link to comment
Share on other sites

iriedreadlock23

Hi!

 

It's been along time since i've posted on this web site. I am working on advanced NPC script, where they would spawn all over the LC. I have many advanced functions, many coming from on of my old mods from february 2009.

 

Now, what i need is a way to use Metadata on various Pedestrians used by my code to distiguish them from other NPC's, to get them to have a sort of memory. Also i need it so i can search trough NPC's much easier/faster. I have declared and created xPed as new pedestrian and i have done this as the code suggests.. I am using VisualBasic 2010.

 

WRITE:/// xPed.Metadata.Respect = "blahblah"

 

SEARCH:/// xPed.Metadata.Contains("Respect") -- correct?

 

READ: /// myData = xPed.Metadata.Respect

 

Can you explain if i am doing something wrong.

 

 

Link to comment
Share on other sites

guywhoknowscollstuff

SCRIPTHOOK 0.5.1 SDK/DEVLOADER LINKS ARE DOWN, NEED SRC CODE accidentally had caps on but im not gonna retype all that

 

Quote from another .net scripthook which uses this scripthook"

 

"Is this dead???? Can somebody recompile this to work with the latest scripthook? I dont have aru's SDK for the version that works with gta4 patch 7 the 1.0.7 cuz that site is down and there are literally NO mirrors for the latest SDK like wth. Cant even recode it for the latest scripthook.dll if i wanted to. If anyone has the latest scripthook sdk guess u could either recode this to work with the 0.5.1 scripthook yourself or upload the sdk for scripthook 0.5.1"

Link to comment
Share on other sites

There is no SDk 0.5.1 (nor 0.5.0) the latest SDK is 0.4.0 and anything compiled with that SDK, will also work on the lastest scripthook.dll.

 

 

Link to comment
Share on other sites

but SDK really need to be updated, becouse in ScriptingEnums.h missing a lot of thinks, for example pickups :l

Link to comment
Share on other sites

but SDK really need to be updated, becouse in ScriptingEnums.h missing a lot of thinks, for example pickups :l

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

 

 

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

Accountclosed

 

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

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.

 

 

Link to comment
Share on other sites

Accountclosed

 

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

 

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

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 ?

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.