forked from justalemon/SimplePassive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConvars.cs
More file actions
39 lines (37 loc) · 1.47 KB
/
Convars.cs
File metadata and controls
39 lines (37 loc) · 1.47 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
using CitizenFX.Core.Native;
using System;
namespace SimplePassive
{
/// <summary>
/// A Class for quick access to Convars.
/// </summary>
public static class Convars
{
/// <summary>
/// The default activation for new players.
/// </summary>
public static bool Default => Convert.ToBoolean(API.GetConvarInt("simplepassive_default", 0));
/// <summary>
/// If debugging information should be shown on the console and client screen.
/// </summary>
public static bool Debug => Convert.ToBoolean(API.GetConvarInt("simplepassive_debug", 0));
/// <summary>
/// If the ped should be made invincible when in passive.
/// </summary>
public static bool MakeInvincible => Convert.ToBoolean(API.GetConvarInt("simplepassive_makeinvincible", 0));
#if CLIENT
/// <summary>
/// The height of the entity debug markers.
/// </summary>
public static int DebugHeight => API.GetConvarInt("simplepassive_debugheight", 1);
/// <summary>
/// The Alpha/Transparency for entities that have passive mode enabled.
/// </summary>
public static int Alpha => API.GetConvarInt("simplepassive_alpha", 200);
/// <summary>
/// If the combat features should be disabled when passive is enabled.
/// </summary>
public static bool DisableCombat => Convert.ToBoolean(API.GetConvarInt("simplepassive_disablecombat", 0));
#endif
}
}