Ped¶
IMPORTANT
Creating Peds client-side is a very bad idea. They will despawn anytime!
Parameters¶
- new ped
boolean - entity id
number/ modelnumberorstring - pedType
numberif new ped is true - x
numberif new ped is true - y
numberif new ped is true - z
numberif new ped is true - heading
numberif new ped is true - isNetwork
booleanif new ped is true
Returns¶
- object
Ped
Raise¶
errorany parameter isn't the correct typeerrorthe ped type isn't between 0 and 29errorif the entity doesn't exists
Examples¶
local ped = Ped(true, 'some_ped_model', 34.5, 33.2, 45.6, 10.0, true)
local ped = Ped(false, someEntityId)