Skip to content

Commit

Permalink
fix(client/main): wait for player to load before starting status thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshiin13 committed Dec 23, 2024
1 parent a332069 commit 7c882b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ function HUD:SetHudColor()
end

function HUD:Start(xPlayer)
while not ESX.PlayerLoaded do Wait(0) end

if not xPlayer then
xPlayer = ESX.GetPlayerData()
end

self:SetHudColor()
self:SlowThick()
self:FastThick()
Expand Down

0 comments on commit 7c882b9

Please sign in to comment.