project-error / pe-basicloading

A simple yet robust FiveM loading screen supporting markdown.

Home Page:https://forum.cfx.re/t/project-error-pe-basicloading/4040832

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug(Nui): Following the shutdown handler function, nui focus is set to false

RockySouthpaw opened this issue · comments

Causes issues of where the mouse should be in use but is disabled by the loading screen ending.

Related to:

local function shutdownHandler()

Current solution is to remove the thread:

local function shutdownHandler()
    SendLoadingScreenMessage(json.encode({fullyLoaded = true}))
    ShutdownLoadingScreenNui(true)
end

Requires additional testing with different pc specs though before making a pull request. Adding it here for issue tracking.

Do note, this wasn't tested with the shutdown export and no convars were set.