-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathExample.cs
More file actions
30 lines (27 loc) · 782 Bytes
/
Copy pathExample.cs
File metadata and controls
30 lines (27 loc) · 782 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
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CitizenFX.Core;
namespace DuiHandler
{
public class GameScript : BaseScript
{
public GameScript()
{
this.Tick += GameScript_Tick;
}
private async Task GameScript_Tick()
{
if (Game.IsControlJustPressed(0, Control.ReplayStartStopRecording))
{
var createDui = this.Exports["addon"].createDui("cinscreen", "https://www.youtube.com/watch?v=p9MnXkWLe5M");
}
if (Game.IsControlJustPressed(0, Control.ReplayStartStopRecordingSecondary))
{
this.Exports["addon"].destroyAllDui();
}
}
}
}