Class Player
Inheritance
System.Object
Player
Inherited Members
AltV.Net.Shared.Elements.Entities.SharedBaseObject.SetMetaData(Dictionary<, >)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AltV.Net.dll
Syntax
public class Player : Entity, IInternalBaseObject, IPlayer, ISharedPlayer, IEntity, ISharedEntity, IWorldObject, ISharedWorldObject, IBaseObject, ISharedBaseObject, INative
Constructors
|
Improve this Doc
View Source
Player(ICore, IntPtr, UInt32)
Declaration
public Player(ICore core, IntPtr nativePointer, uint id)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.IntPtr |
nativePointer |
|
System.UInt32 |
id |
|
Properties
|
Improve this Doc
View Source
AimPosition
Declaration
public Position AimPosition { get; }
Property Value
Type |
Description |
Position |
|
|
Improve this Doc
View Source
Armor
Declaration
public ushort Armor { get; set; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
AuthToken
Declaration
public string AuthToken { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
BloodDamage
Declaration
public string BloodDamage { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CloudAuthResult
Declaration
public CloudAuthResult CloudAuthResult { get; }
Property Value
|
Improve this Doc
View Source
CloudId
Declaration
public string CloudId { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CurrentAnimationDict
Declaration
public uint CurrentAnimationDict { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
CurrentAnimationName
Declaration
public uint CurrentAnimationName { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
CurrentWeapon
Declaration
public uint CurrentWeapon { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
DiscordId
Declaration
public long DiscordId { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
EntityAimingAt
Declaration
public IEntity EntityAimingAt { get; }
Property Value
|
Improve this Doc
View Source
EntityAimOffset
Declaration
public Position EntityAimOffset { get; }
Property Value
Type |
Description |
Position |
|
|
Improve this Doc
View Source
EyeColor
Declaration
public ushort EyeColor { get; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
ForwardSpeed
Declaration
public float ForwardSpeed { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
HairColor
Declaration
public byte HairColor { get; set; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
HairHighlightColor
Declaration
public byte HairHighlightColor { get; set; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
HardwareIdExHash
Declaration
public ulong HardwareIdExHash { get; }
Property Value
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
HardwareIdHash
Declaration
public ulong HardwareIdHash { get; }
Property Value
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
HeadBlendData
Declaration
public HeadBlendData HeadBlendData { get; }
Property Value
Type |
Description |
HeadBlendData |
|
|
Improve this Doc
View Source
HeadRotation
Declaration
public Rotation HeadRotation { get; }
Property Value
Type |
Description |
Rotation |
|
|
Improve this Doc
View Source
Health
Declaration
public ushort Health { get; set; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
InteriorLocation
Declaration
public uint InteriorLocation { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Invincible
Declaration
public bool Invincible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Ip
Declaration
public string Ip { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
IsAiming
Declaration
public bool IsAiming { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsConnected
Declaration
public bool IsConnected { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCrouching
Declaration
public bool IsCrouching { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsDead
Declaration
public bool IsDead { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsEnteringVehicle
Declaration
public bool IsEnteringVehicle { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsFlashlightActive
Declaration
public bool IsFlashlightActive { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInCover
Declaration
public bool IsInCover { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInMelee
Declaration
public bool IsInMelee { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInRagdoll
Declaration
public bool IsInRagdoll { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInVehicle
Declaration
public bool IsInVehicle { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsJumping
Declaration
public bool IsJumping { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsLeavingVehicle
Declaration
public bool IsLeavingVehicle { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsOnLadder
Declaration
public bool IsOnLadder { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsParachuting
Declaration
public bool IsParachuting { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReloading
Declaration
public bool IsReloading { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsShooting
Declaration
public bool IsShooting { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSpawned
Declaration
public bool IsSpawned { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsStealthy
Declaration
public bool IsStealthy { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSuperJumpEnabled
Declaration
public bool IsSuperJumpEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LastDamagedBodyPart
Declaration
public uint LastDamagedBodyPart { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
MaxArmor
Declaration
public ushort MaxArmor { get; set; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
MaxHealth
Declaration
public ushort MaxHealth { get; set; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
Model
Declaration
public override uint Model { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
Overrides
|
Improve this Doc
View Source
MoveSpeed
Declaration
public float MoveSpeed { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
NativePointer
Declaration
public override IntPtr NativePointer { get; }
Property Value
Type |
Description |
System.IntPtr |
|
Overrides
|
Improve this Doc
View Source
Ping
Declaration
public uint Ping { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
PlayerNativePointer
Declaration
public IntPtr PlayerNativePointer { get; }
Property Value
Type |
Description |
System.IntPtr |
|
|
Improve this Doc
View Source
Seat
Declaration
public byte Seat { get; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
SendNames
Declaration
public bool SendNames { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SocialClubId
Declaration
public ulong SocialClubId { get; }
Property Value
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
SocialClubName
Declaration
public string SocialClubName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
StrafeSpeed
Declaration
public float StrafeSpeed { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Vehicle
Declaration
public IVehicle Vehicle { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddDecoration(UInt32, UInt32, Byte)
Declaration
public void AddDecoration(uint collection, uint overlay, byte count = 1)
Parameters
Type |
Name |
Description |
System.UInt32 |
collection |
|
System.UInt32 |
overlay |
|
System.Byte |
count |
|
|
Improve this Doc
View Source
AddWeaponComponent(WeaponModel, UInt32)
Declaration
public void AddWeaponComponent(WeaponModel weaponModel, uint weaponComponent)
Parameters
Type |
Name |
Description |
WeaponModel |
weaponModel |
|
System.UInt32 |
weaponComponent |
|
|
Improve this Doc
View Source
AddWeaponComponent(UInt32, UInt32)
Declaration
public void AddWeaponComponent(uint weapon, uint weaponComponent)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
System.UInt32 |
weaponComponent |
|
|
Improve this Doc
View Source
ClearBloodDamage()
Declaration
public void ClearBloodDamage()
|
Improve this Doc
View Source
ClearClothes(Byte)
Declaration
public bool ClearClothes(byte component)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearDecorations()
Declaration
public void ClearDecorations()
|
Improve this Doc
View Source
ClearProps(Byte)
Declaration
public void ClearProps(byte component)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
|
Improve this Doc
View Source
ClearTasks()
Declaration
|
Improve this Doc
View Source
Declaration
public void DeleteLocalMetaData(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
|
Improve this Doc
View Source
Despawn()
Declaration
|
Improve this Doc
View Source
Emit(String, Object[])
Declaration
public void Emit(string eventName, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
eventName |
|
System.Object[] |
args |
|
|
Improve this Doc
View Source
EmitRPC(String, Object[])
Declaration
public ushort EmitRPC(string name, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
EmitRPCAnswer(UInt16, Object, String)
Declaration
public void EmitRPCAnswer(ushort answerId, object answer, string error)
Parameters
Type |
Name |
Description |
System.UInt16 |
answerId |
|
System.Object |
answer |
|
System.String |
error |
|
|
Improve this Doc
View Source
EmitUnreliable(String, Object[])
Declaration
public void EmitUnreliable(string eventName, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
eventName |
|
System.Object[] |
args |
|
|
Improve this Doc
View Source
GetAmmo(UInt32)
Declaration
public ushort GetAmmo(uint ammoHash)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
Returns
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
GetAmmoFlags(UInt32)
Declaration
public AmmoFlags GetAmmoFlags(uint ammoHash)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
Returns
|
Improve this Doc
View Source
GetAmmoMax(UInt32)
Declaration
public int GetAmmoMax(uint ammoHash)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetAmmoMax100(UInt32)
Declaration
public int GetAmmoMax100(uint ammoHash)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetAmmoMax50(UInt32)
Declaration
public int GetAmmoMax50(uint ammoHash)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetAmmoSpecialType(UInt32)
Declaration
public AmmoSpecialType GetAmmoSpecialType(uint ammoHash)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
Returns
Type |
Description |
AmmoSpecialType |
|
|
Improve this Doc
View Source
GetClothes(Byte)
Declaration
public Cloth GetClothes(byte component)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
Returns
|
Improve this Doc
View Source
GetClothes(Byte, ref Cloth)
Declaration
public void GetClothes(byte component, ref Cloth cloth)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
Cloth |
cloth |
|
|
Improve this Doc
View Source
GetCurrentWeaponComponents(out UInt32[])
Declaration
public void GetCurrentWeaponComponents(out uint[] weaponComponents)
Parameters
Type |
Name |
Description |
System.UInt32[] |
weaponComponents |
|
|
Improve this Doc
View Source
GetCurrentWeaponTintIndex()
Declaration
public byte GetCurrentWeaponTintIndex()
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
GetDecorations()
Declaration
public Decoration[] GetDecorations()
Returns
|
Improve this Doc
View Source
GetDlcClothes(Byte)
Declaration
public DlcCloth GetDlcClothes(byte component)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
Returns
Type |
Description |
DlcCloth |
|
|
Improve this Doc
View Source
GetDlcClothes(Byte, ref DlcCloth)
Declaration
public void GetDlcClothes(byte component, ref DlcCloth cloth)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
DlcCloth |
cloth |
|
|
Improve this Doc
View Source
GetDlcProps(Byte)
Declaration
public DlcProp GetDlcProps(byte component)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
Returns
|
Improve this Doc
View Source
GetDlcProps(Byte, ref DlcProp)
Declaration
public void GetDlcProps(byte component, ref DlcProp prop)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
DlcProp |
prop |
|
|
Improve this Doc
View Source
GetFaceFeatureScale(Byte)
Declaration
public float GetFaceFeatureScale(byte index)
Parameters
Type |
Name |
Description |
System.Byte |
index |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
GetForwardVector()
Declaration
public Vector3 GetForwardVector()
Returns
Type |
Description |
System.Numerics.Vector3 |
|
|
Improve this Doc
View Source
GetHeadBlendPaletteColor(Byte)
Declaration
public Rgba GetHeadBlendPaletteColor(byte id)
Parameters
Type |
Name |
Description |
System.Byte |
id |
|
Returns
|
Improve this Doc
View Source
GetHeadOverlay(Byte)
Declaration
public HeadOverlay GetHeadOverlay(byte overlayID)
Parameters
Type |
Name |
Description |
System.Byte |
overlayID |
|
Returns
Type |
Description |
HeadOverlay |
|
|
Improve this Doc
View Source
GetId(IntPtr)
Declaration
public static uint GetId(IntPtr playerPointer)
Parameters
Type |
Name |
Description |
System.IntPtr |
playerPointer |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Declaration
public void GetLocalMetaData(string key, out MValueConst value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
MValueConst |
value |
|
|
Improve this Doc
View Source
Declaration
public bool GetLocalMetaData<T>(string key, out T result)
Parameters
Type |
Name |
Description |
System.String |
key |
|
T |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
GetProps(Byte)
Declaration
public Prop GetProps(byte component)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
Returns
|
Improve this Doc
View Source
GetProps(Byte, ref Prop)
Declaration
public void GetProps(byte component, ref Prop prop)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
Prop |
prop |
|
|
Improve this Doc
View Source
GetWeaponAmmo(UInt32)
Declaration
public ushort GetWeaponAmmo(uint weaponHash)
Parameters
Type |
Name |
Description |
System.UInt32 |
weaponHash |
|
Returns
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
GetWeapons()
Declaration
public WeaponData[] GetWeapons()
Returns
Type |
Description |
WeaponData[] |
|
|
Improve this Doc
View Source
GetWeaponTintIndex(WeaponModel)
Declaration
public byte GetWeaponTintIndex(WeaponModel weapon)
Parameters
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
GetWeaponTintIndex(UInt32)
Declaration
public byte GetWeaponTintIndex(uint weapon)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
GiveWeapon(WeaponModel, Int32, Boolean)
Declaration
public void GiveWeapon(WeaponModel weaponModel, int ammo, bool selectWeapon)
Parameters
Type |
Name |
Description |
WeaponModel |
weaponModel |
|
System.Int32 |
ammo |
|
System.Boolean |
selectWeapon |
|
|
Improve this Doc
View Source
GiveWeapon(UInt32, Int32, Boolean)
Declaration
public void GiveWeapon(uint weapon, int ammo, bool selectWeapon)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
System.Int32 |
ammo |
|
System.Boolean |
selectWeapon |
|
|
Improve this Doc
View Source
Declaration
public bool HasLocalMetaData(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
HasWeapon(WeaponModel)
Declaration
public bool HasWeapon(WeaponModel weapon)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
HasWeapon(UInt32)
Declaration
public bool HasWeapon(uint weapon)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
HasWeaponComponent(WeaponModel, UInt32)
Declaration
public bool HasWeaponComponent(WeaponModel weapon, uint weaponComponent)
Parameters
Type |
Name |
Description |
WeaponModel |
weapon |
|
System.UInt32 |
weaponComponent |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
HasWeaponComponent(UInt32, UInt32)
Declaration
public bool HasWeaponComponent(uint weapon, uint weaponComponent)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
System.UInt32 |
weaponComponent |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsEntityInStreamingRange(IEntity)
Declaration
public bool IsEntityInStreamingRange(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Kick(String)
Declaration
public void Kick(string reason)
Parameters
Type |
Name |
Description |
System.String |
reason |
|
|
Improve this Doc
View Source
PlayAmbientSpeech(String, String, UInt32)
Declaration
public void PlayAmbientSpeech(string speechName, string speechParam, uint speechDictHash)
Parameters
Type |
Name |
Description |
System.String |
speechName |
|
System.String |
speechParam |
|
System.UInt32 |
speechDictHash |
|
|
Improve this Doc
View Source
PlayAnimation(String, String, Single, Single, Int32, Int32, Single, Boolean, Boolean, Boolean)
Declaration
public void PlayAnimation(string animDict, string animName, float blendInSpeed, float blendOutSpeed, int duration, int flags, float playbackRate, bool lockX, bool lockY, bool lockZ)
Parameters
Type |
Name |
Description |
System.String |
animDict |
|
System.String |
animName |
|
System.Single |
blendInSpeed |
|
System.Single |
blendOutSpeed |
|
System.Int32 |
duration |
|
System.Int32 |
flags |
|
System.Single |
playbackRate |
|
System.Boolean |
lockX |
|
System.Boolean |
lockY |
|
System.Boolean |
lockZ |
|
|
Improve this Doc
View Source
PlayScenario(String)
Declaration
public void PlayScenario(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
|
Improve this Doc
View Source
RemoveAllWeapons(Boolean)
Declaration
public void RemoveAllWeapons(bool removeAllAmmo)
Parameters
Type |
Name |
Description |
System.Boolean |
removeAllAmmo |
|
|
Improve this Doc
View Source
RemoveDecoration(UInt32, UInt32)
Declaration
public void RemoveDecoration(uint collection, uint overlay)
Parameters
Type |
Name |
Description |
System.UInt32 |
collection |
|
System.UInt32 |
overlay |
|
|
Improve this Doc
View Source
RemoveFaceFeature(Byte)
Declaration
public bool RemoveFaceFeature(byte index)
Parameters
Type |
Name |
Description |
System.Byte |
index |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveHeadBlendData()
Declaration
public void RemoveHeadBlendData()
|
Improve this Doc
View Source
RemoveHeadBlendPaletteColor()
Declaration
public void RemoveHeadBlendPaletteColor()
|
Improve this Doc
View Source
RemoveHeadOverlay(Byte)
Declaration
public bool RemoveHeadOverlay(byte overlayId)
Parameters
Type |
Name |
Description |
System.Byte |
overlayId |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveWeapon(WeaponModel)
Declaration
public bool RemoveWeapon(WeaponModel weaponModel)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveWeapon(UInt32)
Declaration
public bool RemoveWeapon(uint weapon)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveWeaponComponent(WeaponModel, UInt32)
Declaration
public void RemoveWeaponComponent(WeaponModel weaponModel, uint weaponComponent)
Parameters
Type |
Name |
Description |
WeaponModel |
weaponModel |
|
System.UInt32 |
weaponComponent |
|
|
Improve this Doc
View Source
RemoveWeaponComponent(UInt32, UInt32)
Declaration
public void RemoveWeaponComponent(uint weapon, uint weaponComponent)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
System.UInt32 |
weaponComponent |
|
|
Improve this Doc
View Source
SetAmmo(UInt32, UInt16)
Declaration
public void SetAmmo(uint ammoHash, ushort ammo)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
System.UInt16 |
ammo |
|
|
Improve this Doc
View Source
SetAmmoFlags(UInt32, AmmoFlags)
Declaration
public void SetAmmoFlags(uint ammoHash, AmmoFlags ammoFlags)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
AmmoFlags |
ammoFlags |
|
|
Improve this Doc
View Source
SetAmmoMax(UInt32, Int32)
Declaration
public void SetAmmoMax(uint ammoHash, int ammoMax)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
System.Int32 |
ammoMax |
|
|
Improve this Doc
View Source
SetAmmoMax100(UInt32, Int32)
Declaration
public void SetAmmoMax100(uint ammoHash, int ammoMax)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
System.Int32 |
ammoMax |
|
|
Improve this Doc
View Source
SetAmmoMax50(UInt32, Int32)
Declaration
public void SetAmmoMax50(uint ammoHash, int ammoMax)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
System.Int32 |
ammoMax |
|
|
Improve this Doc
View Source
SetAmmoSpecialType(UInt32, AmmoSpecialType)
Declaration
public void SetAmmoSpecialType(uint ammoHash, AmmoSpecialType ammoSpecialType)
Parameters
Type |
Name |
Description |
System.UInt32 |
ammoHash |
|
AmmoSpecialType |
ammoSpecialType |
|
|
Improve this Doc
View Source
SetCached(IntPtr)
Declaration
public override void SetCached(IntPtr cachedPlayer)
Parameters
Type |
Name |
Description |
System.IntPtr |
cachedPlayer |
|
Overrides
|
Improve this Doc
View Source
SetClothes(Byte, UInt16, Byte, Byte)
Declaration
public bool SetClothes(byte component, ushort drawable, byte texture, byte palette)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
System.UInt16 |
drawable |
|
System.Byte |
texture |
|
System.Byte |
palette |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetDateTime(DateTime)
Declaration
public void SetDateTime(DateTime dateTime)
Parameters
Type |
Name |
Description |
System.DateTime |
dateTime |
|
|
Improve this Doc
View Source
SetDateTime(Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public void SetDateTime(int day, int month, int year, int hour, int minute, int second)
Parameters
Type |
Name |
Description |
System.Int32 |
day |
|
System.Int32 |
month |
|
System.Int32 |
year |
|
System.Int32 |
hour |
|
System.Int32 |
minute |
|
System.Int32 |
second |
|
|
Improve this Doc
View Source
SetDlcClothes(Byte, UInt16, Byte, Byte, UInt32)
Declaration
public bool SetDlcClothes(byte component, ushort drawable, byte texture, byte palette, uint dlc)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
System.UInt16 |
drawable |
|
System.Byte |
texture |
|
System.Byte |
palette |
|
System.UInt32 |
dlc |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetDlcProps(Byte, UInt16, Byte, UInt32)
Declaration
public bool SetDlcProps(byte component, ushort drawable, byte texture, uint dlc)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
System.UInt16 |
drawable |
|
System.Byte |
texture |
|
System.UInt32 |
dlc |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetEyeColor(UInt16)
Declaration
public bool SetEyeColor(ushort eyeColor)
Parameters
Type |
Name |
Description |
System.UInt16 |
eyeColor |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetFaceFeature(Byte, Single)
Declaration
public bool SetFaceFeature(byte index, float scale)
Parameters
Type |
Name |
Description |
System.Byte |
index |
|
System.Single |
scale |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetHeadBlendData(UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Single, Single, Single)
Declaration
public void SetHeadBlendData(uint shapeFirstID, uint shapeSecondID, uint shapeThirdID, uint skinFirstID, uint skinSecondID, uint skinThirdID, float shapeMix, float skinMix, float thirdMix)
Parameters
Type |
Name |
Description |
System.UInt32 |
shapeFirstID |
|
System.UInt32 |
shapeSecondID |
|
System.UInt32 |
shapeThirdID |
|
System.UInt32 |
skinFirstID |
|
System.UInt32 |
skinSecondID |
|
System.UInt32 |
skinThirdID |
|
System.Single |
shapeMix |
|
System.Single |
skinMix |
|
System.Single |
thirdMix |
|
|
Improve this Doc
View Source
SetHeadBlendPaletteColor(Byte, Rgba)
Declaration
public bool SetHeadBlendPaletteColor(byte id, Rgba rgba)
Parameters
Type |
Name |
Description |
System.Byte |
id |
|
Rgba |
rgba |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetHeadOverlay(Byte, Byte, Single)
Declaration
public bool SetHeadOverlay(byte overlayId, byte index, float opacity)
Parameters
Type |
Name |
Description |
System.Byte |
overlayId |
|
System.Byte |
index |
|
System.Single |
opacity |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetHeadOverlayColor(Byte, Byte, Byte, Byte)
Declaration
public bool SetHeadOverlayColor(byte overlayId, byte colorType, byte colorIndex, byte secondColorIndex)
Parameters
Type |
Name |
Description |
System.Byte |
overlayId |
|
System.Byte |
colorType |
|
System.Byte |
colorIndex |
|
System.Byte |
secondColorIndex |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetIntoVehicle(IVehicle, Byte)
Declaration
public void SetIntoVehicle(IVehicle vehicle, byte seat)
Parameters
Type |
Name |
Description |
IVehicle |
vehicle |
|
System.Byte |
seat |
|
|
Improve this Doc
View Source
Declaration
public void SetLocalMetaData(string key, in MValueConst value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
MValueConst |
value |
|
|
Improve this Doc
View Source
Declaration
public void SetLocalMetaData(string key, object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
|
Improve this Doc
View Source
SetProps(Byte, UInt16, Byte)
Declaration
public bool SetProps(byte component, ushort drawable, byte texture)
Parameters
Type |
Name |
Description |
System.Byte |
component |
|
System.UInt16 |
drawable |
|
System.Byte |
texture |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetWeaponAmmo(UInt32, UInt16)
Declaration
public void SetWeaponAmmo(uint weaponHash, ushort ammo)
Parameters
Type |
Name |
Description |
System.UInt32 |
weaponHash |
|
System.UInt16 |
ammo |
|
|
Improve this Doc
View Source
SetWeaponTintIndex(WeaponModel, Byte)
Declaration
public void SetWeaponTintIndex(WeaponModel weaponModel, byte tintIndex)
Parameters
Type |
Name |
Description |
WeaponModel |
weaponModel |
|
System.Byte |
tintIndex |
|
|
Improve this Doc
View Source
SetWeaponTintIndex(UInt32, Byte)
Declaration
public void SetWeaponTintIndex(uint weapon, byte tintIndex)
Parameters
Type |
Name |
Description |
System.UInt32 |
weapon |
|
System.Byte |
tintIndex |
|
|
Improve this Doc
View Source
SetWeather(WeatherType)
Declaration
public void SetWeather(WeatherType weatherType)
Parameters
|
Improve this Doc
View Source
SetWeather(UInt32)
Declaration
public void SetWeather(uint weather)
Parameters
Type |
Name |
Description |
System.UInt32 |
weather |
|
|
Improve this Doc
View Source
Spawn(PedModel, Position, UInt32)
Declaration
public void Spawn(PedModel model, Position position, uint delayMs = 0U)
Parameters
Type |
Name |
Description |
PedModel |
model |
|
Position |
position |
|
System.UInt32 |
delayMs |
|
|
Improve this Doc
View Source
Spawn(Position, UInt32)
Declaration
public void Spawn(Position position, uint delayMs)
Parameters
Type |
Name |
Description |
Position |
position |
|
System.UInt32 |
delayMs |
|
|
Improve this Doc
View Source
Spawn(UInt32, Position, UInt32)
Declaration
public void Spawn(uint model, Position position, uint delayMs = 0U)
Parameters
Type |
Name |
Description |
System.UInt32 |
model |
|
Position |
position |
|
System.UInt32 |
delayMs |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
ISharedPlayer.EntityAimingAt
Declaration
ISharedEntity ISharedPlayer.EntityAimingAt { get; }
Returns
|
Improve this Doc
View Source
ISharedPlayer.Vehicle
Declaration
ISharedVehicle ISharedPlayer.Vehicle { get; }
Returns
Implements