mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-04 17:23:31 +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
|
else
|
||||||
QBCore.Player.CheckPlayerData(source, newData)
|
QBCore.Player.CheckPlayerData(source, newData)
|
||||||
end
|
end
|
||||||
return true
|
for k,v in pairs(QBCore.Shared) do
|
||||||
else
|
|
||||||
QBCore.ShowError(GetCurrentResourceName(), 'ERROR QBCORE.PLAYER.LOGIN - NO SOURCE GIVEN!')
|
|
||||||
for k,v in pairs(QBCore.Shared) do
|
|
||||||
if type (v) == 'table' then
|
if type (v) == 'table' then
|
||||||
TriggerClientEvent('QBCore:Client:OnSharedUpdateMultiple', source, k,v)
|
TriggerClientEvent('QBCore:Client:OnSharedUpdateMultiple', source, k,v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
return true
|
||||||
|
else
|
||||||
|
QBCore.ShowError(GetCurrentResourceName(), 'ERROR QBCORE.PLAYER.LOGIN - NO SOURCE GIVEN!')
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user