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