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:
Hakos47
2023-06-07 18:24:32 +02:00
committed by GitHub
parent c296a76e1c
commit e71e187a8f
+5
View File
@@ -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