-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.cs
More file actions
29 lines (27 loc) · 844 Bytes
/
Main.cs
File metadata and controls
29 lines (27 loc) · 844 Bytes
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
using LSPD_First_Response.Mod.API;
using Rage;
namespace MizCallouts
{
public class Main : Plugin
{
public override void Initialize()
{
Functions.OnOnDutyStateChanged += OnOnDutyStateChangedHandler;
Settings.Load();
Game.LogTrivial("[MizCallouts] Plugin initialized.");
}
private void OnOnDutyStateChangedHandler(bool onDuty)
{
if (onDuty)
{
Functions.RegisterCallout(typeof(Callouts.BabyDriver));
Game.DisplayNotification("[MizCallouts] Callout loaded successfully!");
}
}
public override void Finally()
{
Functions.OnOnDutyStateChanged -= OnOnDutyStateChangedHandler;
Game.LogTrivial("[MizCallouts] Plugin unloaded.");
}
}
}