mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user