Show / Hide Table of Contents

Class LocalPlayer

Inheritance
Object
Element
PhysicalElement
SharedPed
Ped
Player
LocalPlayer
Inherited Members
Player.Team
Player.Name
Player.NametagColor
Player.NametagText
Player.NametagShowing
Player.Ping
Player.Voice
Player.Local
Player.GetFromName(String)
Player.OnJoin
Player.OnCollisionShapeHit
Player.OnCollisionShapeLeave
Player.OnNicknameChanged
Player.OnPickupHit
Player.OnPickupLeave
Player.OnQuit
Player.OnSpawn
Player.OnVehicleEnter
Player.OnVehicleExit
Player.OnVoicePaused
Player.OnVoiceResumed
Player.OnVoiceStart
Player.OnVoiceStop
Player.OnWeaponSwitch
Player.OnChatMessage
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
public class LocalPlayer : Player

Properties

| Improve this Doc View Source

ActiveRadioStation

Get and set the radio channel that's playing on the client (even when not in a vehicle)

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

BlurLevel

Get and set the motion blur level of the player

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

ForceMap

Get and set if the player map forcefuly shows

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

Instance

Returns the Local Player element

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

IsMapVisible

Get if the map is currently visible

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

MapBoundingBox

This function gets the GUI bounding box of the radar map texture.

Declaration
public Tuple<Vector2, Vector2> MapBoundingBox { get; }
Property Value
Type Description
Tuple<Vector2, Vector2>
| Improve this Doc View Source

Money

Get and set the money of the player

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

WantedLevel

Get the wanted level of the player

Declaration
public int WantedLevel { get; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

DetonateSatchels()

Detonate the satchels this player has laid

Declaration
public bool DetonateSatchels()
Returns
Type Description
Boolean
| Improve this Doc View Source

GiveMoney(Int32)

Adds money to the player's money

Declaration
public bool GiveMoney(int amount)
Parameters
Type Name Description
Int32 amount
Returns
Type Description
Boolean
| Improve this Doc View Source

IsHudComponentVisible(HudComponent)

Check if a certain component is visible

Declaration
public bool IsHudComponentVisible(HudComponent component)
Parameters
Type Name Description
HudComponent component
Returns
Type Description
Boolean
| Improve this Doc View Source

PlaySoundFrontEnd(FrontEndSound)

Play an internal GTA sound

Declaration
public bool PlaySoundFrontEnd(FrontEndSound frontEndSound)
Parameters
Type Name Description
FrontEndSound frontEndSound
Returns
Type Description
Boolean
| Improve this Doc View Source

SetHudComponentVisible(HudComponent, Boolean)

Set the visibility of a Hud component

Declaration
public bool SetHudComponentVisible(HudComponent component, bool visible)
Parameters
Type Name Description
HudComponent component
Boolean visible
Returns
Type Description
Boolean
| Improve this Doc View Source

TakeMoney(Int32)

Substract money from the player

Declaration
public bool TakeMoney(int amount)
Parameters
Type Name Description
Int32 amount
Returns
Type Description
Boolean

Events

| Improve this Doc View Source

OnChoke

Declaration
public event LocalPlayer.OnChokeHandler OnChoke
Event Type
Type Description
LocalPlayer.OnChokeHandler
| Improve this Doc View Source

OnConsole

Declaration
public event LocalPlayer.OnConsoleHandler OnConsole
Event Type
Type Description
LocalPlayer.OnConsoleHandler
| Improve this Doc View Source

OnRadioSwitch

Declaration
public event LocalPlayer.OnRadioSwitchHandler OnRadioSwitch
Event Type
Type Description
LocalPlayer.OnRadioSwitchHandler
| Improve this Doc View Source

OnStealthKill

Declaration
public event LocalPlayer.OnStealthKillHandler OnStealthKill
Event Type
Type Description
LocalPlayer.OnStealthKillHandler
| Improve this Doc View Source

OnStuntFinish

Declaration
public event LocalPlayer.OnStuntFinishHandler OnStuntFinish
Event Type
Type Description
LocalPlayer.OnStuntFinishHandler
| Improve this Doc View Source

OnStuntStart

Declaration
public event LocalPlayer.OnStuntStartHandler OnStuntStart
Event Type
Type Description
LocalPlayer.OnStuntStartHandler
| Improve this Doc View Source

OnTarget

Declaration
public event LocalPlayer.OnTargetHandler OnTarget
Event Type
Type Description
LocalPlayer.OnTargetHandler

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