Skip to content

Commit a86649e

Browse files
committed
Set script GFX Draw order to 1, to allow other scripts to draw on top of MenuAPI
1 parent 903cf87 commit a86649e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

MenuAPI/Menu.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Drawing;
44
using System.Linq;
@@ -992,7 +992,7 @@ internal async void Draw()
992992
#endregion
993993

994994
MenuItemsYOffset = 0f;
995-
995+
SetScriptGfxDrawOrder(1);
996996
#region Draw Header
997997
if (!string.IsNullOrEmpty(MenuTitle))
998998
{
@@ -1308,7 +1308,7 @@ internal async void Draw()
13081308
SetTextScale(textSize, textSize);
13091309
SetTextJustification(1);
13101310
SetTextFont(font);
1311-
int lineCount = 1;
1311+
int lineCount;
13121312
foreach (string s in CitizenFX.Core.UI.Screen.StringToArray(text))
13131313
{
13141314
AddTextComponentSubstringPlayerName(s);
@@ -1654,6 +1654,7 @@ internal async void Draw()
16541654
}
16551655

16561656
#endregion
1657+
SetScriptGfxDrawOrder(0);
16571658
}
16581659
}
16591660
#endregion

0 commit comments

Comments
 (0)