Interface ISharedPlayer
Assembly: AltV.Net.Shared.dll
Syntax
public interface ISharedPlayer : ISharedEntity, ISharedWorldObject, ISharedBaseObject, INative
Properties
|
Improve this Doc
View Source
AimPosition
Returns the World Position of where the player is currently aiming
Declaration
Position AimPosition { get; }
Property Value
|
Improve this Doc
View Source
Armor
Returns the players current armor
Declaration
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
CurrentAnimationDict
Returns player's current animation dictionary hash
Declaration
uint CurrentAnimationDict { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
CurrentAnimationName
Returns player's current animation name hash
Declaration
uint CurrentAnimationName { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
CurrentWeapon
Returns the current weapon the player has equipped
Declaration
uint CurrentWeapon { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
EntityAimingAt
Returns the IEntity object if the player is aiming at
Declaration
ISharedEntity EntityAimingAt { get; }
Property Value
|
Improve this Doc
View Source
EntityAimOffset
Declaration
Position EntityAimOffset { get; }
Property Value
|
Improve this Doc
View Source
ForwardSpeed
Declaration
float ForwardSpeed { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
HeadRotation
The current rotation of the players head
Declaration
Rotation HeadRotation { get; }
Property Value
|
Improve this Doc
View Source
Health
Gets and Sets the players health
Declaration
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
IsAiming
Returns if the player is aiming.
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsDead
Returns if the player is dead. True = player is dead
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsEnteringVehicle
Returns if the player is entering vehicle
Declaration
bool IsEnteringVehicle { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsFlashlightActive
Returns if the players weapon flashlight or weapon is active (Being aimed)
Declaration
bool IsFlashlightActive { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInCover
Returns if the player is in cover
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInMelee
Returns if the player is in melee
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInRagdoll
Returns if the player is currently in RagDoll state.
Declaration
bool IsInRagdoll { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInVehicle
Returns if the player is in a vehicle
Declaration
bool IsInVehicle { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsLeavingVehicle
Returns if the player is leaving vehicle
Declaration
bool IsLeavingVehicle { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsOnLadder
Returns if the player is on ladder
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsParachuting
Declaration
bool IsParachuting { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReloading
Returns if the player is reloading
Declaration
bool IsReloading { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSpawned
Returns if the player is spawned
Declaration
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MaxArmor
Returns the max armor for the player
Declaration
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
MaxHealth
Gets and Sets the players max health
Declaration
ushort MaxHealth { get; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
MoveSpeed
Gets the current movement speed of the player in m/s
Declaration
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Name
Returns the players alt:V username
Declaration
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
PlayerNativePointer
Declaration
IntPtr PlayerNativePointer { get; }
Property Value
|
Improve this Doc
View Source
Seat
Returns the current seat the player is in. Drivers = 1
Declaration
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
StrafeSpeed
Declaration
float StrafeSpeed { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Vehicle
Returns the current vehicle. Null if not in a vehicle
Declaration
ISharedVehicle Vehicle { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetCurrentWeaponComponents(out UInt32[])
Gets the current weapon components for the weapon in hand
Declaration
void GetCurrentWeaponComponents(out uint[] weaponComponents)
Parameters
Type |
Name |
Description |
System.UInt32[] |
weaponComponents |
Array of component hashes
|