GTA_Player_M Posted May 2, 2013 Share Posted May 2, 2013 (edited) *Coding Hi! I've just started writing mods for IV. (with ScriptHook) I cant find list of available functions.... I found native functions. ( like ACTIVATE_VIEWPORT ADD_BLIP_FOR_COORD ADD_BLIP_FOR_OBJECT ADD_BLIP_FOR_PICKUP ) but I mean ( Player.Character.Health= Game.DisplayText ("") Player.GetTargetedPed() World.GetNextPositionOnStreet() ) Edited June 28, 2013 by GTA_Player_M Link to comment Share on other sites More sharing options...
sextitsboobsyeah Posted May 2, 2013 Share Posted May 2, 2013 gtamodding.com or download the scripthook c++ sdk and open the Scripting.h file Link to comment Share on other sites More sharing options...
GTA_Player_M Posted May 2, 2013 Author Share Posted May 2, 2013 (edited) So, i must download "scripthook c++ sdk" and open the Scripting.h file? great... i can't find download link. Edited May 2, 2013 by GTA_Player_M Link to comment Share on other sites More sharing options...
sextitsboobsyeah Posted May 2, 2013 Share Posted May 2, 2013 really?? i googled gta iv scripthook sdk and found in literally 1 second http://www.gta4.fr/download.php?act=view&id=985 Link to comment Share on other sites More sharing options...
GTA_Player_M Posted May 2, 2013 Author Share Posted May 2, 2013 Thank you. Link to comment Share on other sites More sharing options...
sextitsboobsyeah Posted May 2, 2013 Share Posted May 2, 2013 sure man Link to comment Share on other sites More sharing options...
pedro2555 Posted May 3, 2013 Share Posted May 3, 2013 Am I missing something or is GTA_Player_M talking about C# and sextitsboobsyeah about C++ ? Link to comment Share on other sites More sharing options...
sextitsboobsyeah Posted May 3, 2013 Share Posted May 3, 2013 well he just wanted a list of native functions and the scripthook sdk has a list of the documented functions and a list of undocumented, which work but need to be reversed, in ScriptingDirty.h Link to comment Share on other sites More sharing options...
GTA_Player_M Posted June 17, 2013 Author Share Posted June 17, 2013 (edited) Look at this: GTA.Native.Function.Call("LOAD_ALL_PATH_NODES", -165.2489f, 738.463f,18.2663f);// or "LOAD_PATH_NODES_IN_AREA" or Game.LoadAllPathNodes=true; Vector3 spawn_place= new Vector3 (-159.4306f, 702.650f, 10.6845f);Vector3 destination = new Vector3 (-165.2489f, 738.463f, 18.2663f);Ped target= World.CreatePed (0x5B404032, spawn_place, RelationshipGroup.Player);Wait(1000);target.BecomeMissionCharacter();target.WillDoDrivebys= true;target.PriorityTargetForEnemies=true;target.DuckWhenAimedAtByGroupMember=false;target.SetPathfinding (true,true,true);target.BlockPermanentEvents=true;target.ChangeRelationship (RelationshipGroup.Player, Relationship.Hate);Wait (1000);Game.DisplayText ("done..");target.Task.GoTo(destination, false); Why it doesn't work? Ped doesn't go to destination. I tried to create ped on pavement. (ped was going to destinetion, but after a dozen meters he just disappeared.) Moreover, .GoTo (destination,true) doesn't work too. (ped disappearing). Can you help me? Edited June 28, 2013 by GTA_Player_M Link to comment Share on other sites More sharing options...
GTA_Player_M Posted June 27, 2013 Author Share Posted June 27, 2013 I'm not sure about this: -"LOAD_ALL_PATH_NODES" -"LOAD_PATH_NODES_IN_AREA" Maybe parameters are wrong... I was looking for explain on : http://www.gtamodding.com/index.php?title=...ative_functions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now