Jump to content

Native Details

  • NameCREATE_PED
  • NamespacePED
  • Native Hash0xD49F9B0955C367DE
  • TypePed
  • First seen version1207

Native Parameters

  • Parameter 0Hash modelHash
    Hashed model name of the ped, must be loaded first or function won't work!
  • Parameter 1float x
    The x coordinate to spawn the Ped at.
  • Parameter 2float y
    The y coordinate to spawn the Ped at.
  • Parameter 3float z
    The z coordinate to spawn the Ped at.
  • Parameter 4float heading
    The angle in degrees to spawn the Ped facing.
  • Parameter 5BOOL isNetwork
    Unused, keep as false.
  • Parameter 6BOOL thisScriptCheck
    Unknown, keep as false.
  • Parameter 7Any p8
    Unknown, use 0.
  • Parameter 8BOOL p8

DESCRIPTION

Creates a Ped at the specified position with the model hash and heading provided.  Note that you should ensure the model is loaded beforehand.


CODE EXAMPLE

pedHandle = CREATE_PED(0x93B09465, -305.8457, 792.7352, 118.0212, 45.0, false, false, 0);
if (DOES_ENTITY_EXIST(pedHandle)) { ...

User Feedback

Recommended Comments

Tryall

Members

Use REQUEST_MODEL (native function 0xFA28FE3A6246FC30) to load the ped model first.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

Recently Browsing 0

  • No registered users viewing this page.