player.setInitialState

(Redirected from Player.setInitialState)

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

Available since Client 1.0.72

void player.setInitialState(void)

The player.setInitialState method is used to set the initial state for a player.

Parameters

void This method doesn't take any parameters.

Return

void This method doesn't return a value.

Types

Shared Player

Notes

There aren't any notes for this method.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

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