Quantcast

Jump to content

» «
Photo

Codin in C_sharp

9 replies to this topic
GTA_Player_M
  • GTA_Player_M

    Player Hater

  • Members
  • Joined: 02 May 2013

#1

Posted 02 May 2013 - 08:26 AM Edited by GTA_Player_M, 28 June 2013 - 09:30 AM.

*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()
)

sextitsboobsyeah
  • sextitsboobsyeah

    Player Hater

  • BUSTED!
  • Joined: 01 May 2013

#2

Posted 02 May 2013 - 09:29 AM

gtamodding.com or download the scripthook c++ sdk and open the Scripting.h file

GTA_Player_M
  • GTA_Player_M

    Player Hater

  • Members
  • Joined: 02 May 2013

#3

Posted 02 May 2013 - 10:23 AM Edited by GTA_Player_M, 02 May 2013 - 10:27 AM.

So, i must download "scripthook c++ sdk" and open the Scripting.h file?

great... i can't find download link.

sextitsboobsyeah
  • sextitsboobsyeah

    Player Hater

  • BUSTED!
  • Joined: 01 May 2013

#4

Posted 02 May 2013 - 05:56 PM

really?? i googled gta iv scripthook sdk and found in literally 1 second confused.gif

http://www.gta4.fr/d...act=view&id=985

GTA_Player_M
  • GTA_Player_M

    Player Hater

  • Members
  • Joined: 02 May 2013

#5

Posted 02 May 2013 - 07:24 PM

Thank you. biggrin.gif

sextitsboobsyeah
  • sextitsboobsyeah

    Player Hater

  • BUSTED!
  • Joined: 01 May 2013

#6

Posted 02 May 2013 - 09:22 PM

sure man wink.gif

pedro2555
  • pedro2555

    Open Sourcer

  • Members
  • Joined: 02 Sep 2012
  • Portugal

#7

Posted 03 May 2013 - 12:25 AM

Am I missing something or is GTA_Player_M talking about C# and sextitsboobsyeah about C++ ?

sextitsboobsyeah
  • sextitsboobsyeah

    Player Hater

  • BUSTED!
  • Joined: 01 May 2013

#8

Posted 03 May 2013 - 12:47 AM

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

GTA_Player_M
  • GTA_Player_M

    Player Hater

  • Members
  • Joined: 02 May 2013

#9

Posted 17 June 2013 - 11:20 AM Edited by GTA_Player_M, 28 June 2013 - 09:37 AM.

Look at this:
CODE

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). confused.gif
Can you help me?

GTA_Player_M
  • GTA_Player_M

    Player Hater

  • Members
  • Joined: 02 May 2013

#10

Posted 27 June 2013 - 01:06 PM

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users