Class Player
Class of MTA player elements
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
|
Improve this Doc
View Source
Name
Gets the name of the player
Declaration
public string Name { get; }
Property Value
|
Improve this Doc
View Source
Get and set the color of the player's nametag
Declaration
public Color NametagColor { get; set; }
Property Value
|
Improve this Doc
View Source
Get and set wether the nametag is visible
Declaration
public bool NametagShowing { get; set; }
Property Value
|
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
|
Improve this Doc
View Source
Ping
Get the ping in milliseconds
Declaration
Property Value
|
Improve this Doc
View Source
Team
Declaration
public Team Team { get; }
Property Value
|
Improve this Doc
View Source
Voice
Get the sound element that represents the player's voice
Declaration
public Sound Voice { get; }
Property Value
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
Events
|
Improve this Doc
View Source
OnChatMessage
Declaration
public event Player.OnChatMessageHandler OnChatMessage
Event Type
|
Improve this Doc
View Source
OnCollisionShapeHit
Declaration
public event Player.OnCollisionShapeHitHandler OnCollisionShapeHit
Event Type
|
Improve this Doc
View Source
OnCollisionShapeLeave
Declaration
public event Player.OnCollisionShapeLeaveHandler OnCollisionShapeLeave
Event Type
|
Improve this Doc
View Source
OnJoin
Declaration
public static event Player.OnJoinHandler OnJoin
Event Type
|
Improve this Doc
View Source
OnNicknameChanged
Declaration
public event Player.OnNicknameChangedHandler OnNicknameChanged
Event Type
|
Improve this Doc
View Source
OnPickupHit
Declaration
public event Player.OnPickupHitHandler OnPickupHit
Event Type
|
Improve this Doc
View Source
OnPickupLeave
Declaration
public event Player.OnPickupLeaveHandler OnPickupLeave
Event Type
|
Improve this Doc
View Source
OnQuit
Declaration
public event Player.OnQuitHandler OnQuit
Event Type
|
Improve this Doc
View Source
OnSpawn
Declaration
public event Player.OnSpawnHandler OnSpawn
Event Type
|
Improve this Doc
View Source
OnVehicleEnter
Declaration
public event Player.OnVehicleEnterHandler OnVehicleEnter
Event Type
|
Improve this Doc
View Source
OnVehicleExit
Declaration
public event Player.OnVehicleExitHandler OnVehicleExit
Event Type
|
Improve this Doc
View Source
OnVoicePaused
Declaration
public event Player.OnVoicePausedHandler OnVoicePaused
Event Type
|
Improve this Doc
View Source
OnVoiceResumed
Declaration
public event Player.OnVoiceResumedHandler OnVoiceResumed
Event Type
|
Improve this Doc
View Source
OnVoiceStart
Declaration
public event Player.OnVoiceStartHandler OnVoiceStart
Event Type
|
Improve this Doc
View Source
OnVoiceStop
Declaration
public event Player.OnVoiceStopHandler OnVoiceStop
Event Type
|
Improve this Doc
View Source
OnWeaponSwitch
Declaration
public event Player.OnWeaponSwitchHandler OnWeaponSwitch
Event Type
Extension Methods