Ped::createPed

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

-- OUTDATED --

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

mp.game.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