Jump to content

CREATE_PED


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



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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Red Dead Redemption 2 Native Database by www.mod-rdr.com, includes contributions by gudmunduro and alloc8or.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...