Перейти к содержанию

CreatePed

Материал из RAGE MP Wiki Archive

Creates a new Ped.


<syntaxhighlight lang="csharp">Ped NAPI.Ped.CreatePed(PedHash model, Vector3 pos, float heading, uint dimension = NAPI.GlobalDimension);</syntaxhighlight>

Parameters

  • model: The hash defining the Ped's model.
  • pos: The position where the Ped will be created.
  • heading: The angle the Ped will be looking to.
  • dimension: Optional, defaults to Global Dimension.


Example

<syntaxhighlight lang="csharp"> // Code here... </syntaxhighlight>