Click or drag to resize

Player Properties

The Player type exposes the following members.

Properties
  NameDescription
Public propertyAngle
Gets or sets the facing angle of this player.
Public propertyAnimationIndex
Gets the index of the animation this player is playing.
Public propertyArmour
Gets or sets the armor of this player.
Public propertyAspectCameraRatio
Gets the aspect ratio of this player's camera.
Public propertyBytesReceived
Get the amount of information (in bytes) that the server has sent to the player.
Public propertyBytesSent
Get the amount of information (in bytes) that the server has received from the player.
Public propertyCameraFrontVector
Gets the front Vector3 of this player's camera.
Public propertyCameraMode
Gets the mode of this player's camera.
Public propertyCameraPosition
Gets or sets the position of the camera of this player.
Public propertyCameraTargetActor
Gets the GtaPlayer the camera of this player is pointing at.
Public propertyCameraTargetEntity
Gets the entity (player, player object, object, vehicle or actor) the camera of this player is pointing at.
Public propertyCameraTargetGlobalObject
Gets the GlobalObject the camera of this player is pointing at.
Public propertyCameraTargetPlayer
Gets the GtaPlayer the camera of this player is pointing at.
Public propertyCameraTargetPlayerObject
Gets the PlayerObject the camera of this player is pointing at.
Public propertyCameraTargetVehicle
Gets the GtaVehicle the camera of this player is pointing at.
Public propertyCameraZoom
Gets the game camera zoom level for this player.
Public propertyColor
Gets or sets the Color of this player.
Public propertyConnectedTime
Gets the amount of time (in milliseconds) that a player has been connected to the server for.
Public propertyConnectionStatus
Get a player's connection status.
Public propertyDrunkLevel
Gets or sets the drunkenness level of this player.
Public propertyEndPoint
Gets the end point (IP and port) of this player.
Public propertyEntity
Gets the entity to which this component has been attached.
(Inherited from Component.)
Public propertyFightStyle
Gets or sets the FightStyle of this player.
Public propertyGpci
Gets this player's GPCI string.
Public propertyHealth
Gets or sets the health of this player.
Public propertyInAnyVehicle
Gets whether this player is currently in any vehicle.
Public propertyInCheckpoint
Gets whether this player is in his checkpoint.
Public propertyInRaceCheckpoint
Gets whether this player is in his race-checkpoint.
Public propertyInterior
Gets or sets the interior of this player.
Public propertyIp
Gets the IP of this player.
Public propertyIsAdmin
Gets whether this player is logged into RCON.
Public propertyIsAlive
Gets a value indicating whether this player is alive.
Public propertyIsComponentAlive
Gets a value indicating whether this component is alive (has not been destroyed).
(Inherited from Component.)
Public propertyIsNpc
Gets whether this player is an actual player or an NPC.
Public propertyIsSelectingTextDraw
Gets a value indicating whether this player is selecting a textdraw.
Public propertyMenu
Gets the Vehicle this player is currently in.
Public propertyMessagesReceived
Gets the number of messages the server has received from the player.
Public propertyMessagesReceivedPerSecond
Gets the number of messages the player has received in the last second.
Public propertyMessagesSent
Gets the number of messages the server has sent to the player.
Public propertyMoney
Gets or sets the money of this player.
Public propertyName
Gets or sets the name of this player.
Public propertyNetworkStats Obsolete.
Gets this player's network stats and saves them into a string.
Public propertyPacketLossPercent Obsolete.
Gets the packet loss percentage of a player. Packet loss means data the player is sending to the server is being lost (or vice-versa).
Public propertyParent
Gets the parent entity of the entity to which this component has been attached.
(Inherited from Component.)
Public propertyPing
Gets the ping of this player.
Public propertyPosition
Gets or sets the position of this player.
Public propertyRotation
Gets or sets the rotation of this player.
Public propertyScore
Gets or sets the score of this player.
Public propertySkin
Gets or sets the skin of this player.
Public propertySpecialAction
Gets or sets the SpecialAction of this player.
Public propertyState
Gets the state of this player.
Public propertySurfingEntity
Gets the entity (object or vehicle) that this player is surfing.
Public propertyTargetActor
Gets the Actor this player is aiming at.
Public propertyTargetPlayer
Gets the Player this player is aiming at.
Public propertyTeam
Gets or sets the team this player is in.
Public propertyVariables
Gets the PVar variable collection for this player.
Public propertyVehicle
Gets the Vehicle this player is currently in.
Public propertyVehicleSeat
Gets the vehicle seat this player sits on.
Public propertyVelocity
Gets or sets the velocity of this player.
Public propertyVersion
Gets this player's game version.
Public propertyVirtualWorld
Gets or sets the virtual world of this player.
Public propertyWantedLevel
Gets or sets the wanted level of this player.
Public propertyWeapon
Gets the Weapon this player is currently holding.
Public propertyWeaponAmmo
Gets the ammo of the Weapon this player is currently holding.
Public propertyWeaponState
Gets the WeaponState of the Weapon this player is currently holding.
Top
See Also