mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 19:28:52 +00:00
refactor(client/functions): Don't send events for inventory and loadout
- While most resources for ESX will utilise PlayerData in some way, few will require up-to-date inventory and loadout data. - Those that do use the getter or a server callback, anyway.
This commit is contained in:
@@ -42,7 +42,9 @@ end
|
||||
|
||||
ESX.SetPlayerData = function(key, val)
|
||||
ESX.PlayerData[key] = val
|
||||
TriggerEvent('esx:setPlayerData', key, val)
|
||||
if key ~= 'inventory' and key ~= 'loadout' then
|
||||
TriggerEvent('esx:setPlayerData', key, val)
|
||||
end
|
||||
end
|
||||
|
||||
ESX.ShowNotification = function(msg)
|
||||
|
||||
Reference in New Issue
Block a user