ped.dropObject

Method Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

void ped.dropObject(void)

The ped.dropObject method is used to make the ped drop whatever object they're holding.

Parameters

void This method doesn't take any parameters.

Return

void This method doesn't return a value.

Types

Shared Ped
Shared Player

Notes

  • This applies to objects the ped has either picked up from the ground or have been given via ped.holdObject. Things like bricks, bottles, trash, etc.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Client Related

      getObjectCount
      getObjects
  gta.convertAllObjectsToDummyObjects
      gta.createObject
      gta.removeWorldObject
      gta.setVisibilityOfClosestObjectOfType
        registerNetObject

      object.affectedByGravity
  object.alpha
      object.boundingCentre
      object.boundingMax
      object.boundingMin
      object.boundingRadius
      object.centerOfMass
        object.children
        object.clearExistsFor
      object.collisionBoxCount
      object.collisionBoxes
      object.collisionLineCount
      object.collisionLines
      object.collisionPower
      object.collisionsEnabled
      object.collisionSphereCount
      object.collisionSpheres
      object.collisionVertexCount
      object.collisionVertices
        object.dimension
      object.distanceFromCentreOfMassToBaseOfModel
        object.existsFor
        object.getData
        object.getRotation
        object.heading
  object.health
        object.id
      object.interior
      object.inWater
        object.isCreatedFor
  object.island
        object.isLocal
      object.isOnScreen
        object.isOwner
        object.isSyncer
        object.isType
      object.markAsNoLongerNeeded
      object.mass
        object.matrix
      object.model
        object.modelIndex
        object.name
        object.netFlags
      object.onScreen
        object.parent
        object.position
        object.removeAllData
        object.removeData
        object.resource
        object.rotation
        object.setData
        object.setExistsFor
      object.setProofs
        object.setRotation
        object.setSyncer
      object.status
        object.streamInDistance
        object.streamOutDistance
        object.syncer
        object.syncerId
        object.turnVelocity
        object.type
        object.velocity
      object.visible