ped.getData

Revision as of 02:38, 29 November 2020 by Vortrex (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |type = method |class = Ped |name = getData |games = GTA IV |parameters = int bodyPart, int model, int texture |parameter1 = int bodyPart The b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Method Client Only icon-iv.png Online and Offline

Available since Client 1.0.0

null ped.getData(int bodyPart, int model, int texture)

The ped.getData method is used to change the appearance of body parts and clothes for a ped.

Parameters

1) int texture The texture index of the body part (usually 0-2).

Return

null This method doesn't return a value.

Types

Shared Ped
Shared Player

Notes

  • The main parts are 0 for head, 1 for upper, and 2 for lower. There are more and will be listed soon.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Client Related

      getPedCount
        getPeds
      gta.clearThreatForPedType
        gta.createPed
      gta.forceRandomPedType
      gta.pedDensity
      gta.setThreatForPedType
    gta.setZonePedInfo
  gta.tommyFatness

      ped.addAnimation
      ped.affectedByGravity
  ped.alpha
        ped.armour
      ped.bleeding
      ped.blendAnimation
      ped.boundingCentre
      ped.boundingMax
      ped.boundingMin
      ped.boundingRadius
    ped.buyIceCream
    ped.canBeKnockedOffBike
    ped.canExitVehicle
      ped.centerOfMass
  ped.changeBodyPart
        ped.children
      ped.clearAnimations
        ped.clearExistsFor
      ped.clearObjective
  ped.clearPointGunAt
      ped.clearThreatSearch
        ped.clearWeapons
      ped.collisionBoxCount
      ped.collisionBoxes
      ped.collisionLineCount
      ped.collisionLines
      ped.collisionPower
      ped.collisionsEnabled
      ped.collisionSphereCount
      ped.collisionSpheres
      ped.collisionVertexCount
      ped.collisionVertices
      ped.contactEntity
      ped.contactEntityOffset
      ped.crouching
      ped.crouchingTime
        ped.dimension
      ped.distanceFromCentreOfMassToBaseOfModel
  ped.dropObject
    ped.duck
        ped.enterVehicle
        ped.existsFor
        ped.exitVehicle
      ped.getComponentOffset
      ped.getComponentPosition
        ped.getData
    ped.getNearestDoorPosition
    ped.getNearestPassengerDoorPosition
    ped.getPositionToOpenVehicleDoor
        ped.getRotation
      ped.getWeaponAmmunition
      ped.getWeaponClipAmmunition
      ped.getWeaponSlotAmmunition
      ped.getWeaponSlotClipAmmunition
  ped.giveHelmet
        ped.giveWeapon
    ped.hailTaxi
        ped.heading
        ped.health
  ped.health
    ped.heedThreats
  ped.holdObject
        ped.id
    ped.instantVehicleExit
    ped.instantVehicleJack
      ped.interior
        ped.invincible
      ped.inWater
        ped.isCreatedFor
      ped.isEnteringVehicle
      ped.isExitingVehicle
        ped.isInVehicle
  ped.island
        ped.isLocal
      ped.isOnScreen
        ped.isOwner
        ped.isSyncer
        ped.isType
      ped.jumping
    ped.lookAt
      ped.markAsNoLongerNeeded
      ped.mass
        ped.matrix
      ped.maxArmour
      ped.maxHealth
      ped.maxStamina
      ped.model
        ped.modelIndex
  ped.money
        ped.name
        ped.netFlags
  ped.objective
      ped.onScreen
        ped.parent
      ped.pedType
      ped.pointGunAt
  ped.pointGunAtPosition
        ped.position
        ped.removeAllData
    ped.removeBodyPart
        ped.removeData
        ped.removeFromVehicle
  ped.removeHelmet
  ped.removeNametag
        ped.resource
    ped.resurrect
    ped.roomToBeVehicleJacked
        ped.rotation
        ped.runTo
    ped.say
      ped.seat
        ped.setData
        ped.setExistsFor
  ped.setNametag
    ped.setPedStats
      ped.setProofs
        ped.setRotation
  ped.setSeek
        ped.setSyncer
      ped.setThreatSearch
  ped.setWaitState
    ped.setWanderPath
      ped.setWeaponAmmunition
      ped.setWeaponClipAmmunition
      ped.setWeaponSlotAmmunition
      ped.setWeaponSlotClipAmmunition
      ped.skin
      ped.sprintTo
      ped.stamina
      ped.staminaDuration
  ped.state
      ped.status
      ped.stayInSamePlace
        ped.streamInDistance
        ped.streamOutDistance
        ped.syncer
        ped.syncerId
        ped.turnVelocity
        ped.type
      ped.upperTorsoRotation
        ped.vehicle
        ped.velocity
      ped.visible
  ped.waitState
      ped.walkStyle
        ped.walkTo
        ped.warpIntoVehicle
        ped.weapon
      ped.weapons
      ped.weaponSlot
      ped.weaponSlots
      ped.weaponState