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