mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-28 23:01:29 +00:00
Update player.lua
fix error
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user