Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
fix: wait for nui to load properly
Browse files Browse the repository at this point in the history
  • Loading branch information
demxnn committed Feb 19, 2022
1 parent 0d6bb5a commit f74b15d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ end)

AddEventHandler('onResourceStart', function(resourceName)
if (resourceName == GetCurrentResourceName()) then
if ESX.PlayerLoaded then InitHUD() end
if ESX.PlayerLoaded then
Citizen.Wait(50)
InitHUD()
end
end
end)

0 comments on commit f74b15d

Please # to comment.