Beispiel #1
0
 public static Task <ReadOnlyPlayer> CopyAsync(this IPlayer player) =>
 AltVAsync.Schedule(player.Copy);
Beispiel #2
0
 public static Task <IBlip> CreateBlip(IPlayer player, byte type, Position pos) =>
 AltVAsync.Schedule(() => Alt.CreateBlip(player, type, pos));
Beispiel #3
0
 public static async Task <byte> GetWheelVariationAsync(this IVehicle vehicle) =>
 await AltVAsync.Schedule(() => vehicle.WheelVariation);
Beispiel #4
0
 public static Task SetColorAsync(this IBlip blip, byte color) =>
 AltVAsync.Schedule(() => blip.Color = color);
Beispiel #5
0
 public static Task SetRouteColorAsync(this IBlip blip, Rgba color) =>
 AltVAsync.Schedule(() => blip.RouteColor = color);
Beispiel #6
0
 public static Task <bool> IsAttachedAsync(this IBlip blip) =>
 AltVAsync.Schedule(() => blip.IsAttached);
Beispiel #7
0
 public static Task <BlipType> GetBlipTypeAsync(this IBlip blip) =>
 AltVAsync.Schedule(() => (BlipType)blip.BlipType);
Beispiel #8
0
 public static Task SetArmorAsync(this IPlayer player, ushort armor) =>
 AltVAsync.Schedule(() => player.Armor = armor);
Beispiel #9
0
 public static Task <float> GetMoveSpeedAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.MoveSpeed);
Beispiel #10
0
 public static Task <bool> IsInRagdollAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.IsInRagdoll);
Beispiel #11
0
 public static Task <bool> IsReloadingAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.IsReloading);
Beispiel #12
0
 public static Task <bool> IsDeadAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.IsDead);
Beispiel #13
0
 public static Task SetHealthAsync(this IPlayer player, ushort health) =>
 AltVAsync.Schedule(() => player.Health = health);
Beispiel #14
0
 public static Task <ushort> GetHealthAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.Health);
Beispiel #15
0
 public static Task <IBlip> CreateBlip(BlipType type, IEntity entityAttach) =>
 AltVAsync.Schedule(() => Alt.CreateBlip(type, entityAttach));
Beispiel #16
0
 public static Task <uint> GetWeaponAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.Weapon);
Beispiel #17
0
 public static Task <bool> IsGlobalAsync(this IBlip blip) =>
 AltVAsync.Schedule(() => blip.IsGlobal);
Beispiel #18
0
 public static Task <ushort> GetAmmoAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.Ammo);
Beispiel #19
0
 public static Task <IEntity> AttachedToAsync(this IBlip blip) =>
 AltVAsync.Schedule(() => blip.AttachedTo);
Beispiel #20
0
 public static Task <Position> GetAimPositionAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.AimPosition);
Beispiel #21
0
 public static Task SetSpriteAsync(this IBlip blip, ushort sprite) =>
 AltVAsync.Schedule(() => blip.Sprite = sprite);
Beispiel #22
0
 public static Task <Rotation> GetHeadRotationAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.HeadRotation);
Beispiel #23
0
 public static Task SetRouteAsync(this IBlip blip, bool route) =>
 AltVAsync.Schedule(() => blip.Route = route);
Beispiel #24
0
 public static Task <bool> IsInVehicleAsync(this IPlayer player) =>
 AltVAsync.Schedule(() => player.IsInVehicle);
Beispiel #25
0
 public static Task RemoveAsync(this IBlip blip) =>
 AltVAsync.Schedule(blip.RemoveAsync);
Beispiel #26
0
 public static Task <IBlip> CreateBlip(IPlayer player, byte type, IEntity entityAttach) =>
 AltVAsync.Schedule(() => Alt.CreateBlip(player, type, entityAttach));
Beispiel #27
0
 public static async Task SetTireSmokeColorAsync(this IVehicle vehicle, Rgba tireSmokeColor) =>
 await AltVAsync.Schedule(() => vehicle.TireSmokeColor = tireSmokeColor);
Beispiel #28
0
 public static Task <IBlip> CreateBlip(BlipType type, Position pos) =>
 AltVAsync.Schedule(() => Alt.CreateBlip(type, pos));
Beispiel #29
0
 public static async Task <bool> HasCustomTiresAsync(this IVehicle vehicle) =>
 await AltVAsync.Schedule(() => vehicle.CustomTires);
Beispiel #30
0
 public static Task SetModelAsync(this IPlayer player, uint model) =>
 AltVAsync.Schedule(() => player.Model = model);