Ped::Ped
Creates a new clientside ped. Use [Player API](/client-side-functions#player) to control peds actions.
Parameters
- model: ([Ped Models](/peds))
- position:
- heading:
- dimension:
Example
Legacy Syntax Variation
The previous syntax for this function allowed you to specify a "streamedIn" callback. This has been removed in favor of the [EntityStreamIn](/entitystreamin) event, but you can add this polyfill to your client script to enable the previous syntax:
Creates a new serverside static or dynamic ped.
Dynamic peds are synchronised/controlled by the player that your gamemode manually assigns and can be reassigned at any moment.
Use clientside [Player API](/client-side-functions#player) on peds to setup tasks. Tasks have to be executed by a player controlling ped.
Parameters
- model: ([Ped Models](/peds))
- position:
- dynamic: : true - synced by controller, false - static
- frozen:
- invincible: