Jump to content

Recommended Posts

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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059929484
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059929683
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059931014
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059933172
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059933309
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059935928
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059936614
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059937156
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059945840
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059945990
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
https://gtaforums.com/topic/390582-c-script-hook/page/48/#findComment-1059945996
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
  • 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.