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

thaCURSEDpie

thanks for your reply smile.gif.

 

I think im just gonna give it a rest... seems useless now... (stupid peds tounge.gif)

Link to comment
Share on other sites

sad.gifsad.gifsad.gifPlease Supports GTAIV 1.0.4.2

I think it is supported. Since 1.0.6.0 = 1.0.5.1 = 1.0.4.2

Link to comment
Share on other sites

Is it possible to spawn a car with a blip to follow ?

 

 

CreateCar(modelHash, vPlayer.X + 3, vPlayer.Y, vPlayer.Z, &newVehicle, true);CreateRandomCharAsDriver(newVehicle, &driverPed);TaskSequence pTask;OpenSequenceTask(&pTask);TaskFollowNavMeshToCoordNoStop(driverPed, vBlip.X, vBlip.Y, vBlip.Z, 2, -1, 1);//TaskGoStraightToCoord(driverPed, vBlip.X, vBlip.Y, vBlip.Z, 2, 45000);//TaskCarMissionCoorsTarget(driverPed, newVehicle, vBlip.X, vBlip.Y, vBlip.Z, 1, 75.0f, 1, 1, 1);CloseSequenceTask(pTask);TaskPerformSequence(driverPed, pTask);ClearSequenceTask(pTask);

 

 

The car is spawned but it doesn't follow the blip sad.gif

I tried TaskFollowNavMeshToCoordNoStop, TaskGoStraightToCoord and TaskCarMissionCoorsTarget but nothing works.

 

Thx.

Link to comment
Share on other sites

 

sad.gif  sad.gif  sad.gifPlease Supports GTAIV 1.0.4.2

I think it is supported. Since 1.0.6.0 = 1.0.5.1 = 1.0.4.2

dozingoff.gif ScriptHook.log is

 

Log start: Mon May 17 01:35:50 2010

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

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

[iNFO] Process base address: 0xe30000

[iNFO] Auto detecting game version

[FATAL] Failed to detect game version

 

APPCRASH!!

Link to comment
Share on other sites

 

Been there, done that, try setting it as a mission ped and then messing with the decision makers, i never successfully completed my mission of making them all attack each other (riot mode), but, i didn't set them as mission peds and somebody recommended i do that.

As I said in 'IV Coding Request' without making them to mission peds, some flags can't be changed.

Link to comment
Share on other sites

Is it possible to spawn a car with a blip to follow ?

 

 

CreateCar(modelHash, vPlayer.X + 3, vPlayer.Y, vPlayer.Z, &newVehicle, true);CreateRandomCharAsDriver(newVehicle, &driverPed);TaskSequence pTask;OpenSequenceTask(&pTask);TaskFollowNavMeshToCoordNoStop(driverPed, vBlip.X, vBlip.Y, vBlip.Z, 2, -1, 1);//TaskGoStraightToCoord(driverPed, vBlip.X, vBlip.Y, vBlip.Z, 2, 45000);//TaskCarMissionCoorsTarget(driverPed, newVehicle, vBlip.X, vBlip.Y, vBlip.Z, 1, 75.0f, 1, 1, 1);CloseSequenceTask(pTask);TaskPerformSequence(driverPed, pTask);ClearSequenceTask(pTask);

 

 

The car is spawned but it doesn't follow the blip sad.gif

I tried TaskFollowNavMeshToCoordNoStop, TaskGoStraightToCoord and TaskCarMissionCoorsTarget but nothing works.

 

Thx.

Nobody ? sad.gif

Link to comment
Share on other sites

 

Is it possible to spawn a car with a blip to follow ?

 

 

CreateCar(modelHash, vPlayer.X + 3, vPlayer.Y, vPlayer.Z, &newVehicle, true);CreateRandomCharAsDriver(newVehicle, &driverPed);TaskSequence pTask;OpenSequenceTask(&pTask);TaskFollowNavMeshToCoordNoStop(driverPed, vBlip.X, vBlip.Y, vBlip.Z, 2, -1, 1);//TaskGoStraightToCoord(driverPed, vBlip.X, vBlip.Y, vBlip.Z, 2, 45000);//TaskCarMissionCoorsTarget(driverPed, newVehicle, vBlip.X, vBlip.Y, vBlip.Z, 1, 75.0f, 1, 1, 1);CloseSequenceTask(pTask);TaskPerformSequence(driverPed, pTask);ClearSequenceTask(pTask);

 

 

The car is spawned but it doesn't follow the blip sad.gif

I tried TaskFollowNavMeshToCoordNoStop, TaskGoStraightToCoord and TaskCarMissionCoorsTarget but nothing works.

 

Thx.

Nobody ? sad.gif

I don't have IV around here, so this hasn't been tested. First you should always look in the script files and look how r* has done it, here are a few examples of TaskFollowNavMeshToCoordNoStop (Native [script / Line]):

 

TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP(0, 0.18, -747.34, 4.58, 3, 10000, 0.50)    [playboy3 / 1930]TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP(0, 1165.24, -401.21, 45.56, 4, 5000, 1.00)    [vlad4 / 844]TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP(0, 1206.68, -513.33, 13.95, 4, -1, 0.50)    [roman4 / 3433]TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP(0, 1213.40, 1465.74, 25.98, 4, 5000, 0.50)    [roman12 / 709]TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP(0, 1231.43, 80.36, 36.92, 2, 30000, 1.50)    [roman2 / 4629]TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP(GetPlayerChar(), 1145.22, -107.74, 34.90, 2, -2, 1.00)    [mel / 1839]

 

The 0 shows that it is used in a TaskSequence. If we use the one from 'mel' now it should look like this:

 

 

TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP(GetPlayerChar(), vBlip.X, vBlip.Y, vBlip.Z, 2, -2, 1.00)

 

If it doesn't work try loading all path nodes by calling LOAD_ALL_PATH_NODES(1). If it still doesn't work, maybe the z-Axes is bugging so use GET_GROUND_Z_FOR_3D_COORD.

BTW: TASK_FOLLOW_NAV_MESH_TO_COORD_NO_STOP will make the char go by foot.

You can use "TASK_CAR_DRIVE_TO_COORD" or "TASK_CAR_MISSION" etc. for making the ped using a car, helpfully examples are in 'mostwanted' and 'taxi'.

Link to comment
Share on other sites

I can't load anything! This is what the log says:

 

 

Log start: Thu May 20 20:31:50 2010-----------------------------------------------[iNFO] GTA IV Script Hook 0.5.0 - © 2009, Aru - Initialized[iNFO] Process base address: 0x40000[iNFO] Auto detecting game version[iNFO] Using game version 1.0.4[iNFO] Script Hook - Shutdown

 

 

Does anybody know what to do?

 

Link to comment
Share on other sites

I can't load anything! This is what the log says:

 

 

Log start: Thu May 20 20:31:50 2010-----------------------------------------------[iNFO] GTA IV Script Hook 0.5.0 - © 2009, Aru - Initialized[iNFO] Process base address: 0x40000[iNFO] Auto detecting game version[iNFO] Using game version 1.0.4[iNFO] Script Hook - Shutdown

 

 

Does anybody know what to do?

I think that you should use an older version of the Script Hook, for your version of the game smile.gif Try it!

Link to comment
Share on other sites

I can't load anything! This is what the log says:

 

 

Log start: Thu May 20 20:31:50 2010-----------------------------------------------[iNFO] GTA IV Script Hook 0.5.0 - © 2009, Aru - Initialized[iNFO] Process base address: 0x40000[iNFO] Auto detecting game version[iNFO] Using game version 1.0.4[iNFO] Script Hook - Shutdown

 

 

Does anybody know what to do?

I think that you should use an older version of the Script Hook, for your version of the game smile.gif Try it!

Where do I get it? confused.gif

Link to comment
Share on other sites

Aru pls can you creat SDK of Script Hook 0.5.0 ? SDK 0.4.0 is too old for EFLC...

Link to comment
Share on other sites

Aru pls can you creat SDK of Script Hook 0.5.0 ? SDK 0.4.0 is too old for EFLC...

You can compile easily over 0.4.0 and include 0.5.0 scripthook.dll.

 

 

Link to comment
Share on other sites

Hi

Finally i have registered here...my problem forced me to do this ;]

Lets begin. I use mods since i remember and i ve been always succeed in applying them..till yesterday. I finished my schoolyear and with smile on my face sat in front on my pc and install gta. Of course i downloaded patch 1.0.6.0 and everythin to launch basic gta. It was working correctly. So i wanted somethin more to improve this boring game. So i spent a little time on reading news about modding. I found out that i need asi loader. Fine..downloaded--> applied like in readme and..it didnt work of course. OK nothing matter. And for the next 4 hours i tried every combination with every asi loader (yaasil, etc), with reinstall, i checked service pack and netframework. Everything was ok. So why the hell it doesnt work?? After reading milions of posts i noticed that in half of the gta players (with asiloader applied) cases the mods dont want to woork!! Isnt it strange? It is and the reason of this split is fact, that some of us still using windows XP!!(like me) I am sure that u noticed it earlier but after another hours of searching i still couldnt find any solution of this problem. Generally people dont notice it. i do and iam pretty sure that asi laoder doesnt work on XP. Its so f*** easy to install this so why it doesnt WORK? Forgive me for words without any proof but i cant see another reason. SO PLEASE HELP (i hate this i use to do everything by myself but iam hopeless) Is there any file to fix this? Any solution? ANY..? Playing unmodded gta is pointless. There are still many xp users who needs help ;]. And iam also waiting for confirmation (or not) of my words. Thanks and sorry for mistakes but its late time even for me smile.gif

 

PS. Is only generall view i really dont know maybe its only one specific file on my pc which blocks asi loader. In asilog everything is correct except magic "Address 0x00000000" in the end.

Edited by kompajasi
Link to comment
Share on other sites

Aru pls can you creat SDK of Script Hook 0.5.0 ? SDK 0.4.0 is too old for EFLC...

You can compile easily over 0.4.0 and include 0.5.0 scripthook.dll.

SDK 0.4.0 dont have EFLC vehicles, skins, nitro and weapons are propably bad too

Link to comment
Share on other sites

opium_addict
Aru pls can you creat SDK of Script Hook 0.5.0 ? SDK 0.4.0 is too old for EFLC...

You can compile easily over 0.4.0 and include 0.5.0 scripthook.dll.

SDK 0.4.0 dont have EFLC vehicles, skins, nitro and weapons are propably bad too

Those aren't included because they haven't been documented (at least, aru hasn't included the documentation), but you can still define EFLC model hashes and use them with the 0.4.0 sdk.

Link to comment
Share on other sites

Aru pls can you creat SDK of Script Hook 0.5.0 ? SDK 0.4.0 is too old for EFLC...

You can compile easily over 0.4.0 and include 0.5.0 scripthook.dll.

SDK 0.4.0 dont have EFLC vehicles, skins, nitro and weapons are propably bad too

I seem to remember you asked for those and I linked them for you, copy this into scriptingenums (at the right position).

 

 

Link to comment
Share on other sites

WindedTrash

New patch, 1.1.2.0, blocked scripthook confused.gif So were waiting for updates, aru smile.gif

Link to comment
Share on other sites

Is this the end of Trainers For Ever?

no, why ? we must only wait for new script hook...

Link to comment
Share on other sites

Is this the end of Trainers For Ever?

no, why ? we must only wait for new script hook...

How long will this take its going to be a long wait :'(

Link to comment
Share on other sites

no no...aru released him script hook 0.5.0 for 1.0.6.0 and EFLC 1.1.0.0 about 2 or 3 days...now we will wait propably 2 or 3 days too smile.gif

Link to comment
Share on other sites

WindedTrash
its patch 1.0.7.0

Im talking about Episodes From Liberty City, not the original game.

Link to comment
Share on other sites

Version 0.5.1 BETA with support for GTAIV 1.0.7 and EFLC 1.1.2.0 posted in first post.

 

Enjoy.

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.