Greetings,
I’v go an UI in my GM,
I tried to use these commands to make appear the mouse and interact with the UI :
SetNuiFocus(true, true);
SetNuiFocusKeepInput(true);
But FXDK doesnt seems to consider mouse call,
Anyone has the same issue ?
Best regards,
This is what i’v tried :
public class ClientMain : BaseScript
{
bool first_tick = false;
public ClientMain()
{
Debug.WriteLine("Hi from Test.Client!");
}
[Tick]
public Task OnTick()
{
if(!first_tick){
Debug.WriteLine("First tick");
first_tick = true;
SetNuiFocus(true, true);
SetNuiFocusKeepInput(true); //Freeze player
}
DrawRect(0.9f, 0.4f, 1.5f, 0.5f, 255, 255, 255, 150);
return Task.FromResult(0);
}
}
}