Ped::createPed

From RAGE Multiplayer Wiki
Revision as of 20:49, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

p7 - last parameter does not mean ped handle is returned
maybe a quick view in disassembly will tell us what is actually does


*Heading*: 0.0
*Heading* is the Z axis spawn rotation of the ped 0->5th parameter.

Ped Types:
[Player,1|Male,4|Female,5|Cop,6|Human,26|SWAT,27|Animal,28|Army,29]
You can also use GET_PED_TYPE

Syntax

ped.createPed(pedType, modelHash, x, y, z, heading, networkHandle, pedHandle);

Required Arguments

  • pedType: int
  • modelHash: Model hash or name
  • x: float
  • y: float
  • z: float
  • heading: float
  • networkHandle: Boolean
  • pedHandle: Boolean

Return value

  • Ped handle or object

Example

todo

See also

Template:Ped function c