SHVDN
v3
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game. Developed by crosire https://github.com/crosire/scripthookvdotnet/
|
Public Member Functions | |
bool | ChangeModel (Model model) |
Attempts to change the Model of this Player. More... | |
void | ChargeSpecialAbility (int absoluteAmount) |
Charges the special ability for this Player. More... | |
void | ChargeSpecialAbility (float normalizedRatio) |
Charges the special ability for this Player. More... | |
void | RefillSpecialAbility () |
Refills the special ability for this Player. More... | |
void | DepleteSpecialAbility () |
Depletes the special ability for this Player. More... | |
bool | IsTargeting (Entity entity) |
Determines whether this Player is targeting the specified Entity. More... | |
void | DisableFiringThisFrame () |
Prevents this Player firing this frame. More... | |
void | SetRunSpeedMultThisFrame (float mult) |
Sets the run speed multiplier for this Player this frame. More... | |
void | SetSwimSpeedMultThisFrame (float mult) |
Sets the swim speed multiplier for this Player this frame. More... | |
void | SetFireAmmoThisFrame () |
Makes this Player shoot fire bullets this frame. More... | |
void | SetExplosiveAmmoThisFrame () |
Makes this Player shoot explosive bullets this frame. More... | |
void | SetExplosiveMeleeThisFrame () |
Makes this Player have an explosive melee attack this frame. More... | |
void | SetSuperJumpThisFrame () |
Lets this Player jump really high this frame. More... | |
void | SetMayNotEnterAnyVehicleThisFrame () |
Blocks this Player from entering any Vehicle this frame. More... | |
void | SetMayOnlyEnterThisVehicleThisFrame (Vehicle vehicle) |
Only lets this Player enter a specific Vehicle this frame. More... | |
override bool | Equals (object obj) |
Determines if an object refers to the same player as this Player. More... | |
override int | GetHashCode () |
Static Public Member Functions | |
static bool | operator== (Player left, Player right) |
Determines if two Players refer to the same player. More... | |
static bool | operator!= (Player left, Player right) |
Determines if two Players don't refer to the same player. More... | |
static implicit | operator InputArgument (Player value) |
Converts a Player to a native input argument. More... | |
Public Attributes | |
string | Name => Function.Call<string>(Hash.GET_PLAYER_NAME, Handle) |
Gets the Social Club name of this Player. More... | |
bool | IsDead => Function.Call<bool>(Hash.IS_PLAYER_DEAD, Handle) |
Gets a value indicating whether this Player is dead. More... | |
bool | IsAlive => !IsDead |
Gets a value indicating whether this Player is alive. More... | |
bool | IsAiming => Function.Call<bool>(Hash.IS_PLAYER_FREE_AIMING, Handle) |
Gets a value indicating whether this Player is aiming. More... | |
bool | IsClimbing => Function.Call<bool>(Hash.IS_PLAYER_CLIMBING, Handle) |
Gets a value indicating whether this Player is climbing. More... | |
bool | IsRidingTrain => Function.Call<bool>(Hash.IS_PLAYER_RIDING_TRAIN, Handle) |
Gets a value indicating whether this Player is riding a train. More... | |
bool | IsPressingHorn => Function.Call<bool>(Hash.IS_PLAYER_PRESSING_HORN, Handle) |
Gets a value indicating whether this Player is pressing a horn. More... | |
bool | IsPlaying => Function.Call<bool>(Hash.IS_PLAYER_PLAYING, Handle) |
Gets a value indicating whether this Player is playing. More... | |
float | RemainingSprintTime => Function.Call<float>(Hash.GET_PLAYER_SPRINT_TIME_REMAINING, Handle) |
Gets how long this Player can remain sprinting for. More... | |
float | RemainingSprintStamina => Function.Call<float>(Hash.GET_PLAYER_SPRINT_STAMINA_REMAINING, Handle) |
Gets how much sprint stamina this Player currently has. More... | |
float | RemainingUnderwaterTime => Function.Call<float>(Hash.GET_PLAYER_UNDERWATER_TIME_REMAINING, Handle) |
Gets how long this Player can stay underwater before they start losing health. More... | |
bool | IsSpecialAbilityActive => Function.Call<bool>(Hash.IS_SPECIAL_ABILITY_ACTIVE, Handle) |
Gets a value indicating whether this Player is using their special ability. More... | |
Vehicle | LastVehicle => Function.Call<Vehicle>(Hash.GET_PLAYERS_LAST_VEHICLE) |
Gets the last Vehicle this Player used. More... | |
bool | IsTargetingAnything => Function.Call<bool>(Hash.IS_PLAYER_TARGETTING_ANYTHING, Handle) |
Gets a value indicating whether this Player is targeting anything. More... | |
Properties | |
int | Handle [get] |
ulong | NativeValue [get, set] |
Ped | Character [get] |
Gets the Ped this Player is controlling. More... | |
int | Money [get, set] |
Gets or sets how much money this Player has. More... | |
int | WantedLevel [get, set] |
Gets or sets the wanted level for this Player. More... | |
Vector3 | WantedCenterPosition [get, set] |
Gets or sets the wanted center position for this Player. More... | |
int | MaxArmor [get, set] |
Gets or sets the maximum amount of armor this Player can carry. More... | |
ParachuteTint | PrimaryParachuteTint [get, set] |
Gets or sets the primary parachute tint for this Player. More... | |
ParachuteTint | ReserveParachuteTint [get, set] |
Gets or sets the reserve parachute tint for this Player. More... | |
bool | CanLeaveParachuteSmokeTrail [set] |
Sets a value indicating whether this Player can leave a parachute smoke trail. More... | |
Color | ParachuteSmokeTrailColor [get, set] |
Gets or sets the color of the parachute smoke trail for this Player. More... | |
bool | IsInvincible [get, set] |
Gets or sets a value indicating whether this Player is invincible. More... | |
bool | IgnoredByPolice [set] |
Sets a value indicating whether this Player is ignored by the police. More... | |
bool | IgnoredByEveryone [set] |
Sets a value indicating whether this Player is ignored by everyone. More... | |
bool | DispatchsCops [set] |
Sets a value indicating whether cops will be dispatched for this Player More... | |
bool | CanUseCover [set] |
Sets a value indicating whether this Player can use cover. More... | |
bool | CanStartMission [get] |
Gets a value indicating whether this Player can start a mission. More... | |
bool | CanControlRagdoll [set] |
Sets a value indicating whether this Player can control ragdoll. More... | |
bool | CanControlCharacter [get, set] |
Gets or sets a value indicating whether this Player can control its Ped. More... | |
bool | IsSpecialAbilityEnabled [get, set] |
Gets or sets a value indicating whether this Player can use their special ability. More... | |
Entity | TargetedEntity [get] |
Gets the Entity this Player is targeting. More... | |
bool | ForcedAim [set] |
Sets a value indicating whether the player is forced to aim. More... | |
Properties inherited from GTA.Native.INativeValue | |
ulong | NativeValue [get, set] |
bool GTA.Player.ChangeModel | ( | Model | model | ) |
void GTA.Player.ChargeSpecialAbility | ( | float | normalizedRatio | ) |
Charges the special ability for this Player.
normalizedRatio | The amount between 0.0f and 1.0f |
void GTA.Player.ChargeSpecialAbility | ( | int | absoluteAmount | ) |
Charges the special ability for this Player.
absoluteAmount | The absolute amount. |
void GTA.Player.DepleteSpecialAbility | ( | ) |
Depletes the special ability for this Player.
void GTA.Player.DisableFiringThisFrame | ( | ) |
Prevents this Player firing this frame.
override bool GTA.Player.Equals | ( | object | obj | ) |
override int GTA.Player.GetHashCode | ( | ) |
bool GTA.Player.IsTargeting | ( | Entity | entity | ) |
|
static |
Converts a Player to a native input argument.
void GTA.Player.RefillSpecialAbility | ( | ) |
Refills the special ability for this Player.
void GTA.Player.SetExplosiveAmmoThisFrame | ( | ) |
Makes this Player shoot explosive bullets this frame.
void GTA.Player.SetExplosiveMeleeThisFrame | ( | ) |
Makes this Player have an explosive melee attack this frame.
void GTA.Player.SetFireAmmoThisFrame | ( | ) |
Makes this Player shoot fire bullets this frame.
void GTA.Player.SetMayNotEnterAnyVehicleThisFrame | ( | ) |
void GTA.Player.SetMayOnlyEnterThisVehicleThisFrame | ( | Vehicle | vehicle | ) |
void GTA.Player.SetRunSpeedMultThisFrame | ( | float | mult | ) |
Sets the run speed multiplier for this Player this frame.
mult | The factor - min: 0.0f , default: 1.0f , max: 1.499f . |
void GTA.Player.SetSuperJumpThisFrame | ( | ) |
Lets this Player jump really high this frame.
void GTA.Player.SetSwimSpeedMultThisFrame | ( | float | mult | ) |
Sets the swim speed multiplier for this Player this frame.
mult | The factor - min: 0.0f , default: 1.0f , max: 1.499f . |
bool GTA.Player.IsAiming => Function.Call<bool>(Hash.IS_PLAYER_FREE_AIMING, Handle) |
bool GTA.Player.IsAlive => !IsDead |
bool GTA.Player.IsClimbing => Function.Call<bool>(Hash.IS_PLAYER_CLIMBING, Handle) |
bool GTA.Player.IsDead => Function.Call<bool>(Hash.IS_PLAYER_DEAD, Handle) |
bool GTA.Player.IsPlaying => Function.Call<bool>(Hash.IS_PLAYER_PLAYING, Handle) |
bool GTA.Player.IsPressingHorn => Function.Call<bool>(Hash.IS_PLAYER_PRESSING_HORN, Handle) |
bool GTA.Player.IsRidingTrain => Function.Call<bool>(Hash.IS_PLAYER_RIDING_TRAIN, Handle) |
bool GTA.Player.IsSpecialAbilityActive => Function.Call<bool>(Hash.IS_SPECIAL_ABILITY_ACTIVE, Handle) |
bool GTA.Player.IsTargetingAnything => Function.Call<bool>(Hash.IS_PLAYER_TARGETTING_ANYTHING, Handle) |
string GTA.Player.Name => Function.Call<string>(Hash.GET_PLAYER_NAME, Handle) |
Gets the Social Club name of this Player.
float GTA.Player.RemainingSprintStamina => Function.Call<float>(Hash.GET_PLAYER_SPRINT_STAMINA_REMAINING, Handle) |
Gets how much sprint stamina this Player currently has.
float GTA.Player.RemainingSprintTime => Function.Call<float>(Hash.GET_PLAYER_SPRINT_TIME_REMAINING, Handle) |
Gets how long this Player can remain sprinting for.
float GTA.Player.RemainingUnderwaterTime => Function.Call<float>(Hash.GET_PLAYER_UNDERWATER_TIME_REMAINING, Handle) |
Gets how long this Player can stay underwater before they start losing health.
|
getset |
|
set |
|
set |
|
get |
|
set |
|
set |
Sets a value indicating whether cops will be dispatched for this Player
true
if cops will be dispatched; otherwise, false
.
|
set |
Sets a value indicating whether the player is forced to aim.
true
to make the player always be aiming; otherwise, false
.
|
get |
|
set |
|
set |
|
getset |
|
getset |
|
getset |
Gets or sets the maximum amount of armor this Player can carry.
|
getset |
Gets or sets how much money this Player has.
Only works if current player is PedHash.Michael, PedHash.Franklin or PedHash.Trevor
|
getset |
|
getset |
|
getset |
Gets or sets the primary parachute tint for this Player.
|
getset |
Gets or sets the reserve parachute tint for this Player.
|
get |
|
getset |
|
getset |
Gets or sets the wanted level for this Player.