local addonInventories = {}
for i=1, #InventoriesIndex, 1 do
local name = InventoriesIndex[i]
local inventory = GetInventory(name, xPlayer.identifier) <--- line 95
if inventory == nil then
inventory = CreateAddonInventory(name, xPlayer.identifier, {})
table.insert(Inventories[name], inventory)
end
table.insert(addonInventories, inventory)
end
Here is the script from ES_EXTENDED link 216
TriggerEvent(‘esx:playerLoaded’, _source)
Does anyone knows the reason for this error? My guess is that it appears when a player that’s already registered, goes into the server. I think it is because of the information I see, because the query it wants to do, is to insert 0 values for money etc. stuff, that’s already different for a player that’s registered (obviously). I covered the steam id and license for obvious reasons. Any help would be appreciated, because the server works, just wanted to know the reason for this error, as it seams it is related to esplugin. I have imported the sql script into the database from this particular script (esplugin), I am using the latest ESX and essential mode and other stuff that was needed for this to work. Well, it is working, but the error’s reason is still a bit mistery to me.
Custom prefix for system messages (new Convar ‘es_prefix’ & ‘es_errorprefix’)
Don’t show Zap messages on Zap servers
Removed more unused code to create a cleaner codebase
Support for different identifiers (new Convar ‘es_identifierUsed’)
By default disable metrics, please enable them if you’d like to support development (Convar ‘es_enable_metrics’)
Also I advise using https://github.com/zap-fivem/esx/ instead of the usual ESX by Hawaii_Beach. Due to ongoing harassment, insults and threats from him, he also decided to forcefully stop base FiveM resources and has shown great distaste into helping the FiveM community.
If there are any questions about this release, let me know!