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.
This commit is contained in:
Luke
2022-01-24 17:22:42 +00:00
committed by GitHub
parent 944c3d581f
commit 126549c456
+6 -1
View File
@@ -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