localPlayer

Revision as of 15:56, 24 August 2019 by Mex (talk | contribs) (Mex moved page LocalPlayer to localPlayer)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Available since Client 1.0.72

Player localPlayer

The localPlayer variable is used to fetch the local player.

Value

Player The local player object.
readonly This variable cannot be changed.

Notes

There aren't any notes for this variable.

Examples

There aren't any examples for this variable.

Compatibility

There isn't any compatibility information for this variable.

Related

Client Related

  createPlayer
      getPlayerCount
      getPlayers
        gta.createPlayer
        gta.setPlayerControl
  gta.shutdownAndLaunchSinglePlayerGame
        localPlayer
  setLocalPlayer
        spawnPlayer

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