-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathAlt.Blip.cs
57 lines (53 loc) · 2.83 KB
/
Alt.Blip.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System.Runtime.CompilerServices;
using AltV.Net.Data;
using AltV.Net.Elements.Entities;
namespace AltV.Net
{
public partial class Alt
{
/// <summary>
/// Creates a blip for a specific player on a specific position.
/// </summary>
/// <param name="global">If the blip global</param>
/// <param name="type">The type of the blip.</param>
/// <param name="pos">The position on which the blip is created.</param>
/// <param name="targets">Targets there can see the blip</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(bool global, byte type, Position pos, IPlayer[] targets) =>
CoreImpl.CreateBlip(global, type, pos, targets);
/// <summary>
/// Create a blip for a specific player, attached to specific entity.
/// </summary>
/// <param name="global">If the blip global</param>
/// <param name="type">The type of the blip.</param>
/// <param name="entityAttach">The entity to which the blip is atteched to.</param>
/// <param name="targets">Targets there can see the blip</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(bool global, byte type, IEntity entityAttach, IPlayer[] targets) =>
CoreImpl.CreateBlip(global, type, entityAttach, targets);
/// <summary>
/// Creates a blip for a specific player on a specific position.
/// </summary>
/// <param name="global">If the blip global</param>
/// <param name="type">The type of the blip.</param>
/// <param name="pos">The position on which the blip is created.</param>
/// <param name="targets">Targets there can see the blip</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(bool global, BlipType type, Position pos, IPlayer[] targets) =>
CoreImpl.CreateBlip(global, (byte) type, pos, targets);
/// <summary>
/// Creates a blip for a specific player, attached to specific entity.
/// </summary>
/// <param name="global">If the blip global</param>
/// <param name="type">The type of the blip.</param>
/// <param name="entityAttach">The entity to which the blip is atteched to.</param>
/// <param name="targets">Targets there can see the blip</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(bool global, BlipType type, IEntity entityAttach, IPlayer[] targets) =>
CoreImpl.CreateBlip(global, (byte) type, entityAttach, targets);
}
}