CreatePed

From GTA Network Wiki
Jump to: navigation, search

CreatePed
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Creates a basic Ped. See Ped list.

Syntax

Ped NAPI.Ped.CreatePed(PedHash model, Vector3 pos, float heading [, uint dimension = NAPI.GlobalDimension ]);

Required Arguments

  • model: parameter input should be in PedHash type.
  • pos: parameter input should be in Vector3 type.
  • heading: parameter input should be in float type.

Optional Arguments

  • dimension: parameter input should be in uint type.

NOTES:

  • This function returns data in Ped type.
  • Ped's will instantly teleport into vehicles when given tasks such as TASK_ENTER_VEHICLE while still frozen in place.

Usage example

Ped myPed = NAPI.Ped.CreatePed(model, pos, heading);

Changelog

Version Description
1.0 Release.

References