ped
Client-side
Server-side
Shared
Element category: Entity
The word "ped" is short for "pedestrian" and describes any person in GTA, be it a player or an NPC character. (And even though "pedestrian" doesn't technically apply to people that drive, they still fall under this name)
The createPed function specifically creates an NPC, but all other ped functions work on both players and NPC's as they're pretty much the same thing to San Andreas.
OOP Constructor
Ped(...) is the constructor method for the ped class (createPed).
OOP Methods and Variables
- ped:addClothes(...)
- ped:getAmmoInClip(...) Variable: .ammoInClip
- ped:canBeKnockedOffBike(...)
- ped:getAnimation(...)
- ped:getArmor(...) Variable: .armor
- ped:getBonePosition(...)
- ped:getCameraRotation(...) Variable: .cameraRotation
- ped:getClothes(...)
- ped:getContactElement(...) Variable: .contactElement
- ped:getControlState(...)
- ped:getFightingStyle(...) Variable: .fightingStyle
- ped:getGravity(...) Variable: .gravity
- ped:getOccupiedVehicleSeat(...) Variable: .vehicleSeat
- ped:getOccupiedVehicle(...) Variable: .vehicle
- ped:getOxygenLevel(...) Variable: .oxygenLevel
- ped:getStat(...)
- ped:getTarget(...)
- ped:getTargetEnd(...)
- ped:getTotalAmmo(...)
- ped:getTask(...)
- ped:getWalkingStyle(...) Variable: .walkingStyle
- ped:getWeapon(...)
- ped:getWeaponSlot(...) Variable: .weaponSlot
- ped:isBleeding(...) Variable: .bleeding
- ped:isChoking(...) Variable: .choking
- ped:isDoingGangDriveby(...) Variable: .doingGangDriveby
- ped:isDead(...) Variable: .dead
- ped:isDucked(...) Variable: .ducked
- ped:isInVehicle(...) Variable: .inVehicle
- ped:isOnGround(...) Variable: .onGround
- ped:isReloadingWeapon(...) Variable: .reloadingWeapon
- ped:isWearingJetpack(...) Variable: .jetpack
- ped:kill(...)
- ped:reloadWeapon(...)
- ped:removeClothes(...)
- ped:removeFromVehicle(...) Variable: .vehicle
- ped:resetVoice(...)
- ped:setAnimation(...)
- ped:setAnimationProgress(...)
- ped:setAnimationSpeed(...)
- ped:setArmor(...) Variable: .armor
- ped:setBleeding(...) Variable: .bleeding
- ped:setCameraRotation(...) Variable: .cameraRotation
- ped:setCanBeKnockedOffBike(...)
- ped:setChoking(...) Variable: .choking
- ped:setControlState(...)
- ped:setGravity(...) Variable: .gravity
- ped:setHeadless(...) Variable: .headless
- ped:setOxygenLevel(...) Variable: .oxygenLevel
- ped:setVoice(...)
- ped:setWalkingStyle(...) Variable: .walkingStyle
- ped:setWeaponSlot(...) Variable: .weaponSlot
- ped:setWearingJetpack(...) Variable: .jetpack
- ped:warpIntoVehicle(...) Variable: .vehicle
See Also
Ped Functions
- addPedClothes
- canPedBeKnockedOffBike
- createPed
- getPedAmmoInClip
- getPedAnalogControlState
- getPedAnimation
- getPedArmor
- getPedBonePosition
- getPedCameraRotation
- getPedClothes
- getPedContactElement
- getPedControlState
- getPedFightingStyle
- getPedGravity
- getPedMoveState
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedOxygenLevel
- getPedSimplestTask
- getPedStat
- getPedTarget
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedTotalAmmo
- getPedVoice
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponMuzzlePosition
- getPedWeaponSlot
- getValidPedModels
- givePedWeapon
- isPedBleeding
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDoingTask
- isPedDucked
- IsPedFootBloodEnabled
- isPedHeadless
- isPedInVehicle
- isPedOnGround
- isPedReloadingWeapon
- isPedTargetingMarkerEnabled
- isPedWearingJetpack
- killPed
- playPedVoiceLine
- reloadPedWeapon
- removePedClothes
- removePedFromVehicle
- resetPedVoice
- setPedAimTarget
- setPedAnalogControlState
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedBleeding
- setPedCameraRotation
- setPedCanBeKnockedOffBike
- setPedChoking
- setPedControlState
- setPedDoingGangDriveby
- setPedEnterVehicle
- setPedExitVehicle
- setPedFightingStyle
- setPedFootBloodEnabled
- setPedGravity
- setPedHeadless
- setPedLookAt
- setPedOxygenLevel
- setPedStat
- setPedTargetingMarkerEnabled
- setPedVoice
- setPedWalkingStyle
- setPedWeaponSlot
- setPedWearingJetpack
- warpPedIntoVehicle
Ped Events
Entity Elements
Element Functions
- addElementDataSubscriber
- attachElements
- clearElementVisibleTo
- cloneElement
- createElement
- destroyElement
- detachElements
- getAllElementData
- getAttachedElements
- getElementAlpha
- getElementAngularVelocity
- getElementAttachedOffsets
- getElementAttachedTo
- getElementBonePosition
- getElementBoneQuaternion
- getElementBoneRotation
- getElementBoundingBox
- getElementByID
- getElementByIndex
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getElementDimension
- getElementDistanceFromCentreOfMassToBaseOfModel
- getElementHealth
- getElementID
- getElementInterior
- getElementLighting
- getElementModel
- getElementParent
- getElementPosition
- getElementRadius
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementSyncer
- getElementType
- getElementVelocity
- getElementZoneName
- getLowLODElement
- getRootElement
- hasElementData
- hasElementDataSubscriber
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementCollidableWith
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLocal
- isElementLowLOD
- isElementOnFire
- isElementOnScreen
- isElementStreamable
- isElementStreamedIn
- isElementSyncer
- isElementVisibleTo
- isElementWaitingForGroundToLoad
- isElementWithinColShape
- isElementWithinMarker
- removeElementData
- removeElementDataSubscriber
- setElementAlpha
- setElementAngularVelocity
- setElementAttachedOffsets
- setElementBonePosition
- setElementBoneQuaternion
- setElementBoneRotation
- setElementCallPropagationEnabled
- setElementCollidableWith
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementLighting
- setElementModel
- setElementOnFire
- setElementParent
- setElementPosition
- setElementRotation
- setElementStreamable
- setElementSyncer
- setElementVelocity
- setElementVisibleTo
- setLowLODElement
- updateElementRpHAnim
Element Events
- onClientElementColShapeHit
- onClientElementColShapeLeave
- onClientElementDataChange
- onClientElementDestroy
- onClientElementDimensionChange
- onClientElementInteriorChange
- onClientElementModelChange
- onClientElementStreamIn
- onClientElementStreamOut
- onElementClicked
- onElementColShapeHit
- onElementColShapeLeave
- onElementDataChange
- onElementDestroy
- onElementDimensionChange
- onElementInteriorChange
- onElementModelChange
- onElementStartSync
- onElementStopSync