mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-28 23:01:29 +00:00
fix shared update
It's a temporary fix while we see how to do it better. but this in principle fixes the error that when a client entered it did not get the table of items etc updated. since shared_scripts does not serve to update information on both sides (client, server) it would fix problems with addItems, addItem, etc. It is not the best solution. but it's a temporary fix
This commit is contained in:
@@ -32,6 +32,11 @@ function QBCore.Player.Login(source, citizenid, newData)
|
||||
return true
|
||||
else
|
||||
QBCore.ShowError(GetCurrentResourceName(), 'ERROR QBCORE.PLAYER.LOGIN - NO SOURCE GIVEN!')
|
||||
for k,v in pairs(QBCore.Shared) do
|
||||
if type (v) == 'table' then
|
||||
TriggerClientEvent('QBCore:Client:OnSharedUpdateMultiple', source, k,v)
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user