Skip to content

Commit

Permalink
fix(client): loading status
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Oct 9, 2021
1 parent 1a9ff26 commit 7ac0fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions renzu_hud/client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ CreateThread(function()

if config.registerautostatus and not registered then
DecorRegister("STATUSR", 1)
print("REGISTER START")
for k,v in pairs(config.statusordering) do -- register all status
if v.enable and v.custom and register[v.status] == nil and not DecorGetBool(PlayerPedId(), "STATUSR") then
local remove_value = v.statusremove
Expand Down Expand Up @@ -506,7 +507,7 @@ CreateThread(function()
SendNUIMessage({type = "SetStatusOrder",content = {['table'] = config.statusordering, ['float'] = config.statusplace}})
Wait(1000)
Hud.reorder = true
while not Hud.playerloaded do Citizen.Wait(100) end
while not Hud.playerloaded do Citizen.Wait(100) print("loading") end
Wait(100)
local tbl = {['table'] = config.statusordering, ['float'] = config.statusplace}
if config.enable_carui then
Expand Down Expand Up @@ -545,7 +546,7 @@ CreateThread(function()
Hud:EnterVehicleEvent(true,Hud.vehicle)
end
--WHEN RESTARTED IN CAR
while Hud.veh_stats == nil do
while not LocalPlayer.state.loaded do
--print("vehstats")
Wait(100)
end
Expand Down
1 change: 0 additions & 1 deletion renzu_hud/client/function.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ function Hud:EnterVehicleEvent(state,vehicle)
if config.enable_carui_perclass then
self:DefineCarUI(config.carui_perclass[GetVehicleClass(vehicle)])
end
--print("veh loop")
-- self.plate = tostring(GetVehicleNumberPlateText(vehicle))
-- self.plate = string.gsub(self.plate, '^%s*(.-)%s*$', '%1')
self.hp = GetVehicleEngineHealth(vehicle)
Expand Down

0 comments on commit 7ac0fe4

Please sign in to comment.