Show / Hide Table of Contents

Class Player

Class of MTA player elements

Inheritance
Object
Element
PhysicalElement
SharedPed
Ped
Player
LocalPlayer
Inherited Members
Ped.CanBeKnockedOffBike
Ped.CameraRotation
Ped.MoveState
Ped.OxygenLevel
Ped.SimplestTask
Ped.PedVoice
Ped.TargetStart
Ped.TargetEnd
Ped.TargetCollision
Ped.WeaponMuzzlePosition
Ped.IsReloadingWeapon
Ped.FootBloodEnabled
Ped.Animation
Ped.GetAnalogControlState(AnalogControl)
Ped.GetControlState(AnalogControl)
Ped.SetAnalogControlState(AnalogControl, Single)
Ped.SetControlState(AnalogControl, Boolean)
Ped.GetBonePosition(Bone)
Ped.GiveWeapon(SharedWeaponModel, Int32, Boolean)
Ped.IsDoingTask(PedTask)
Ped.AimAt(Vector3)
Ped.AimAt(PhysicalElement)
Ped.LookAt(Vector3, Int32, Int32)
Ped.LookAt(PhysicalElement, Int32, Int32)
Ped.OnDamage
Ped.OnHeliKilled
Ped.OnWasted
Ped.OnWeaponFire
Ped.OnStep
Ped.OnExplosion
Ped.OnWorldSound
SharedPed.WeaponSlot
SharedPed.Armor
SharedPed.ContactElement
SharedPed.FightingStyle
SharedPed.OccupiedVehicle
SharedPed.VehicleSeat
SharedPed.Chocking
SharedPed.IsDead
SharedPed.DoingGangDriveby
SharedPed.IsDucked
SharedPed.Headless
SharedPed.IsInVehicle
SharedPed.OnFire
SharedPed.IsOnGround
SharedPed.HasJetpack
SharedPed.Target
SharedPed.WalkingStyle
SharedPed.Weapon
SharedPed.AmmoInClip
SharedPed.TotalAmmo
SharedPed.IsClothesSlotTattoo(ClothesSlot)
SharedPed.AddClothes(ClothesTexture, ClothesModel, ClothesSlot)
SharedPed.AddClothes(ClothesSlot, Int32)
SharedPed.AddClothes(ClothesTexture, ClothesModel)
SharedPed.GetClothesModel(ClothesSlot)
SharedPed.GetClothesTexture(ClothesSlot)
SharedPed.RemoveClothes(ClothesSlot)
SharedPed.GetWeaponInSlot(WeaponSlot)
SharedPed.GetAmmoInClip(WeaponSlot)
SharedPed.GetTotalAmmo(WeaponSlot)
SharedPed.SetAnimation(Animation, Boolean, Int32, Boolean, Boolean, Boolean, Int32, Boolean)
SharedPed.ResetAnimation()
SharedPed.SetAnimationProgress(Animation, Single)
SharedPed.SetAnimationSpeed(Animation, Single)
SharedPed.GedStat(PedStat)
SharedPed.SetStat(PedStat, Single)
SharedPed.Kill(SharedPed, SharedWeaponModel, BodyPart, Boolean)
SharedPed.Kill(SharedPed)
SharedPed.Kill()
SharedPed.RemoveFromVehicle()
SharedPed.WarpIntoVehicle(SharedVehicle, Seat)
SharedPed.WarpIntoVehicle(SharedVehicle)
SharedPed.FaceElement(PhysicalElement)
SharedPed.IsValidSkin(Int32)
PhysicalElement.Dimension
PhysicalElement.Interior
PhysicalElement.Frozen
PhysicalElement.Alpha
PhysicalElement.Health
PhysicalElement.Model
PhysicalElement.CollisionShape
PhysicalElement.CollisionsEnabled
PhysicalElement.LowLODElement
PhysicalElement.DoubleSided
PhysicalElement.IsInWater
PhysicalElement.IsLowLOD
PhysicalElement.Position
PhysicalElement.Rotation
PhysicalElement.QuaternionRotation
PhysicalElement.Matrix
PhysicalElement.ForwardVector
PhysicalElement.RightVector
PhysicalElement.UpVector
PhysicalElement.Velocity
PhysicalElement.AngularVelocity
PhysicalElement.AngularQuaternionVelocity
PhysicalElement.ToAttached
PhysicalElement.IsAttached
PhysicalElement.IsWithinCollisionShape(CollisionShape)
PhysicalElement.IsWithinMarker(SharedMarker)
PhysicalElement.AttachTo(PhysicalElement, Matrix4x4)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Vector3)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Quaternion)
PhysicalElement.AttachTo(PhysicalElement)
PhysicalElement.Detach()
PhysicalElement.Offset
PhysicalElement.GetWithinRange(Vector3, Single, String)
PhysicalElement.OnClicked
PhysicalElement.OnModelChange
PhysicalElement.OnStartSync
PhysicalElement.OnStopSync
PhysicalElement.OnStreamIn
PhysicalElement.OnStreamOut
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Peds
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Player)]
public class Player : Ped

Properties

| Improve this Doc View Source

Local

Returns the Local Player element

Declaration
public static LocalPlayer Local { get; }
Property Value
Type Description
LocalPlayer
| Improve this Doc View Source

Name

Gets the name of the player

Declaration
public string Name { get; }
Property Value
Type Description
String
| Improve this Doc View Source

NametagColor

Get and set the color of the player's nametag

Declaration
public Color NametagColor { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

NametagShowing

Get and set wether the nametag is visible

Declaration
public bool NametagShowing { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

NametagText

This will change the text of a player's nickname in the world to something besides the nickname he chose. This will not change the player's actual nickname, it only changes the visible aspect inside the world

Declaration
public string NametagText { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Ping

Get the ping in milliseconds

Declaration
public int Ping { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Team

Get the team of a player

Declaration
public Team Team { get; }
Property Value
Type Description
Team
| Improve this Doc View Source

Voice

Get the sound element that represents the player's voice

Declaration
public Sound Voice { get; }
Property Value
Type Description
Sound

Methods

| Improve this Doc View Source

GetFromName(String)

Retrieves a player class instance from a specified player name

Declaration
public static Player GetFromName(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Player

Events

| Improve this Doc View Source

OnChatMessage

Declaration
public event Player.OnChatMessageHandler OnChatMessage
Event Type
Type Description
Player.OnChatMessageHandler
| Improve this Doc View Source

OnCollisionShapeHit

Declaration
public event Player.OnCollisionShapeHitHandler OnCollisionShapeHit
Event Type
Type Description
Player.OnCollisionShapeHitHandler
| Improve this Doc View Source

OnCollisionShapeLeave

Declaration
public event Player.OnCollisionShapeLeaveHandler OnCollisionShapeLeave
Event Type
Type Description
Player.OnCollisionShapeLeaveHandler
| Improve this Doc View Source

OnJoin

Declaration
public static event Player.OnJoinHandler OnJoin
Event Type
Type Description
Player.OnJoinHandler
| Improve this Doc View Source

OnNicknameChanged

Declaration
public event Player.OnNicknameChangedHandler OnNicknameChanged
Event Type
Type Description
Player.OnNicknameChangedHandler
| Improve this Doc View Source

OnPickupHit

Declaration
public event Player.OnPickupHitHandler OnPickupHit
Event Type
Type Description
Player.OnPickupHitHandler
| Improve this Doc View Source

OnPickupLeave

Declaration
public event Player.OnPickupLeaveHandler OnPickupLeave
Event Type
Type Description
Player.OnPickupLeaveHandler
| Improve this Doc View Source

OnQuit

Declaration
public event Player.OnQuitHandler OnQuit
Event Type
Type Description
Player.OnQuitHandler
| Improve this Doc View Source

OnSpawn

Declaration
public event Player.OnSpawnHandler OnSpawn
Event Type
Type Description
Player.OnSpawnHandler
| Improve this Doc View Source

OnVehicleEnter

Declaration
public event Player.OnVehicleEnterHandler OnVehicleEnter
Event Type
Type Description
Player.OnVehicleEnterHandler
| Improve this Doc View Source

OnVehicleExit

Declaration
public event Player.OnVehicleExitHandler OnVehicleExit
Event Type
Type Description
Player.OnVehicleExitHandler
| Improve this Doc View Source

OnVoicePaused

Declaration
public event Player.OnVoicePausedHandler OnVoicePaused
Event Type
Type Description
Player.OnVoicePausedHandler
| Improve this Doc View Source

OnVoiceResumed

Declaration
public event Player.OnVoiceResumedHandler OnVoiceResumed
Event Type
Type Description
Player.OnVoiceResumedHandler
| Improve this Doc View Source

OnVoiceStart

Declaration
public event Player.OnVoiceStartHandler OnVoiceStart
Event Type
Type Description
Player.OnVoiceStartHandler
| Improve this Doc View Source

OnVoiceStop

Declaration
public event Player.OnVoiceStopHandler OnVoiceStop
Event Type
Type Description
Player.OnVoiceStopHandler
| Improve this Doc View Source

OnWeaponSwitch

Declaration
public event Player.OnWeaponSwitchHandler OnWeaponSwitch
Event Type
Type Description
Player.OnWeaponSwitchHandler

Extension Methods

ElementExtensions.GetBoundingBox(PhysicalElement)
ElementExtensions.GetDistanceFromCentreOfMassToBaseOfModel(PhysicalElement)
ElementExtensions.GetRadius(PhysicalElement)
ElementExtensions.SetCollidableWith(PhysicalElement, PhysicalElement, Boolean)
ElementExtensions.IsCollidableWith(PhysicalElement, PhysicalElement)
ElementExtensions.IsLocal(PhysicalElement)
ElementExtensions.IsOnScreen(PhysicalElement)
ElementExtensions.SetStreamable(PhysicalElement, Boolean)
ElementExtensions.IsStreamable(PhysicalElement)
ElementExtensions.IsStreamedIn(PhysicalElement)
ElementExtensions.IsSyncer(PhysicalElement)
ElementExtensions.IsWaitingForGroundToLoad(PhysicalElement)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX