From 126549c456efe0992e01f7ce7907e27a9c3b7010 Mon Sep 17 00:00:00 2001 From: Luke <62490330+Luke20201@users.noreply.github.com> Date: Mon, 24 Jan 2022 17:22:42 +0000 Subject: [PATCH] Added optional fix for identity UI not appearing In some cases on a localhost machine, the esx_identity UI would not appear if multichar was disabled. This provides an optional fix for this. --- [esx]/esx_identity/client/main.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/[esx]/esx_identity/client/main.lua b/[esx]/esx_identity/client/main.lua index 3f49ae4d..e333bb1a 100644 --- a/[esx]/esx_identity/client/main.lua +++ b/[esx]/esx_identity/client/main.lua @@ -27,7 +27,12 @@ if not Config.UseDeferrals then function EnableGui(state) SetNuiFocus(state, state) guiEnabled = state - + --[[ Citizen.CreateThread(function() + while true do + Citizen.Wait(20000) -- UNCOMMENT THIS METHOD IF YOU ARE EXPERIENCING ISSUES WITH THE UI ON LOCALHOST | IF YOU STILL EXPERIENCE ISSUES AFTER REMOVING COMMENTS, INCREASE THE TIME. + end + end) + ]]-- SendNUIMessage({ type = "enableui", enable = state