Update player.lua

fix error
This commit is contained in:
Hakos47
2023-06-07 18:28:19 +02:00
committed by GitHub
parent e71e187a8f
commit f7b8e5ecab
+4 -4
View File
@@ -29,14 +29,14 @@ function QBCore.Player.Login(source, citizenid, newData)
else
QBCore.Player.CheckPlayerData(source, newData)
end
return true
else
QBCore.ShowError(GetCurrentResourceName(), 'ERROR QBCORE.PLAYER.LOGIN - NO SOURCE GIVEN!')
for k,v in pairs(QBCore.Shared) do
for k,v in pairs(QBCore.Shared) do
if type (v) == 'table' then
TriggerClientEvent('QBCore:Client:OnSharedUpdateMultiple', source, k,v)
end
end
return true
else
QBCore.ShowError(GetCurrentResourceName(), 'ERROR QBCORE.PLAYER.LOGIN - NO SOURCE GIVEN!')
return false
end
end