Class LocalPlayer
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
|
Improve this Doc
View Source
BlurLevel
Get and set the motion blur level of the player
Declaration
public int BlurLevel { get; set; }
Property Value
|
Improve this Doc
View Source
ForceMap
Get and set if the player map forcefuly shows
Declaration
public bool ForceMap { get; set; }
Property Value
|
Improve this Doc
View Source
Instance
Returns the Local Player element
Declaration
public static LocalPlayer Instance { get; }
Property Value
|
Improve this Doc
View Source
IsMapVisible
Get if the map is currently visible
Declaration
public bool IsMapVisible { get; }
Property Value
|
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
|
Improve this Doc
View Source
Money
Get and set the money of the player
Declaration
public int Money { get; set; }
Property Value
|
Improve this Doc
View Source
WantedLevel
Get the wanted level of the player
Declaration
public int WantedLevel { get; }
Property Value
Methods
|
Improve this Doc
View Source
DetonateSatchels()
Detonate the satchels this player has laid
Declaration
public bool DetonateSatchels()
Returns
|
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
|
Improve this Doc
View Source
IsHudComponentVisible(HudComponent)
Check if a certain component is visible
Declaration
public bool IsHudComponentVisible(HudComponent component)
Parameters
Returns
|
Improve this Doc
View Source
PlaySoundFrontEnd(FrontEndSound)
Play an internal GTA sound
Declaration
public bool PlaySoundFrontEnd(FrontEndSound frontEndSound)
Parameters
Returns
|
Improve this Doc
View Source
SetHudComponentVisible(HudComponent, Boolean)
Set the visibility of a Hud component
Declaration
public bool SetHudComponentVisible(HudComponent component, bool visible)
Parameters
Returns
|
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
Events
|
Improve this Doc
View Source
OnChoke
Declaration
public event LocalPlayer.OnChokeHandler OnChoke
Event Type
|
Improve this Doc
View Source
OnConsole
Declaration
public event LocalPlayer.OnConsoleHandler OnConsole
Event Type
|
Improve this Doc
View Source
OnRadioSwitch
Declaration
public event LocalPlayer.OnRadioSwitchHandler OnRadioSwitch
Event Type
|
Improve this Doc
View Source
OnStealthKill
Declaration
public event LocalPlayer.OnStealthKillHandler OnStealthKill
Event Type
|
Improve this Doc
View Source
OnStuntFinish
Declaration
public event LocalPlayer.OnStuntFinishHandler OnStuntFinish
Event Type
|
Improve this Doc
View Source
OnStuntStart
Declaration
public event LocalPlayer.OnStuntStartHandler OnStuntStart
Event Type
|
Improve this Doc
View Source
OnTarget
Declaration
public event LocalPlayer.OnTargetHandler OnTarget
Event Type
Extension Methods