Repository navigation
Expand file tree
/
Copy pathAlt.Blip.cs
More file actions
93 lines (85 loc) · 4.46 KB
/
Copy pathAlt.Blip.cs
File metadata and controls
93 lines (85 loc) · 4.46 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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="player">The player for which the blip is created.</param>
/// <param name="type">The type of the blip.</param>
/// <param name="pos">The position on which the blip is created.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(IPlayer player, byte type, Position pos) =>
Core.CreateBlip(player, type, pos);
/// <summary>
/// Create a blip for a specific player, attached to specific entity.
/// </summary>
/// <param name="player">The player for which the blip is created.</param>
/// <param name="type">The type of the blip.</param>
/// <param name="entityAttach">The entity to which the blip is atteched to.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(IPlayer player, byte type, IEntity entityAttach) =>
Core.CreateBlip(player, type, entityAttach);
/// <summary>
/// Creates a blip for a specific player on a specific position.
/// </summary>
/// <param name="player">The player for which the blip is created.</param>
/// <param name="type">The type of the blip.</param>
/// <param name="pos">The position on which the blip is created.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(IPlayer player, BlipType type, Position pos) =>
Core.CreateBlip(player, (byte) type, pos);
/// <summary>
/// Creates a blip for a specific player, attached to specific entity.
/// </summary>
/// <param name="player">The player for which the blip is created.</param>
/// <param name="type">The type of the blip.</param>
/// <param name="entityAttach">The entity to which the blip is atteched to.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(IPlayer player, BlipType type, IEntity entityAttach) =>
Core.CreateBlip(player, (byte) type, entityAttach);
/// <summary>
/// Creates a blip for all players on a specific position.
/// </summary>
/// <param name="type">The type of the blip.</param>
/// <param name="pos">The position on which the blip is created.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(byte type, Position pos) =>
Core.CreateBlip(null, type, pos);
/// <summary>
/// Creates a blip for all players, attached to specific entity.
/// </summary>
/// <param name="type">The type of the blip.</param>
/// <param name="entityAttach">The entity to which the blip is atteched to.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(byte type, IEntity entityAttach) =>
Core.CreateBlip(null, type, entityAttach);
/// <summary>
/// Creates a blip for all players on a specific position.
/// </summary>
/// <param name="type">The type of the blip.</param>
/// <param name="pos">The position on which the blip is created.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(BlipType type, Position pos) =>
Core.CreateBlip(null, (byte) type, pos);
/// <summary>
/// Creates a blip for all players, attached to specific entity.
/// </summary>
/// <param name="type">The type of the blip.</param>
/// <param name="entityAttach">The entity to which the blip is atteched to.</param>
/// <returns>The created Blip.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static IBlip CreateBlip(BlipType type, IEntity entityAttach) =>
Core.CreateBlip(null, (byte) type, entityAttach);
}
}