Skip to content

Commit

Permalink
fix(server): ensure player loading
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Oct 9, 2021
1 parent 7ac0fe4 commit 4e4cd63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions renzu_hud/server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,11 @@ end
RegisterServerEvent("renzu_hud:getdata")
AddEventHandler("renzu_hud:getdata", function(slot, fetchslot)
-- print(slot)
-- print("SLOT")
-- print(fetchslot)
local xPlayer = GetPlayerFromId(source)
local ply = Player(source)
ply.state.loaded = true
ply.state.identifier = xPlayer.identifier
local source = source
if slot ~= nil and charslot[source] == nil then
charslot[source] = slot
Expand All @@ -264,8 +266,6 @@ AddEventHandler("renzu_hud:getdata", function(slot, fetchslot)
local ply = Player(source)
-- ply.state.adv_stat = adv_table
SyncStat(adv_table)
ply.state.loaded = true
ply.state.identifier = xPlayer.identifier
--TriggerClientEvent('renzu_hud:receivedata', source, adv_table, PlayerIdentifier(source))
end
end)
Expand Down

0 comments on commit 4e4cd63

Please sign in to comment.