CreatePed: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server client function}} Creates a Ped in the GTA world. ==Syntax== <syntaxhighlight lang="lua">object createPed ( int modelid, float x, float y, float z, float r )</syntaxhighlight> ===Required Ar...) |
mNo edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">ped createPed ( int modelid, float x, float y, float z, float r )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 21:52, 13 March 2008
Creates a Ped in the GTA world.
Syntax
ped createPed ( int modelid, float x, float y, float z, float r )
Required Arguments
- modelid: A whole integer specifying the GTASA skin ID.
- x: A floating point number representing the X coordinate on the map.
- y: A floating point number representing the Y coordinate on the map.
- z: A floating point number representing the Z coordinate on the map.
Returns
Unknown
Example
This example creates an ped when the map starts:
function pedLoad ( name ) -- create an object at a specified position with a specified rotation createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
See Also
- addPedClothes
- getPedClothes
- removePedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedFightingStyle
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getPedContactElement
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle