QBCore
Last updated
Last updated
This is NOT a laptop problem, for some reason in the latest qb-core exists a bug where existing players can't have new money accounts: https://github.com/qbcore-framework/qb-core/issues/1110 If you are using the latest qb-core and you get the following message on console:
Account cosmo doesn't exist in your Framework
And you are 200% sure the account is registered correctly in your qb-core, is because of the qb-core bug, to fix it you need to add the code I provide here: https://github.com/qbcore-framework/qb-core/issues/1110#issuecomment-2131709479
If using qb-inventory 2.0.0 (or higher) you can ignore this.
The UsableItems function in qb-core is also broken when not using qb-inventory , implement the following fix:
Go to qb-core/server/functions.lua
> search for function QBCore.Functions.CreateUseableItem and replace it with this:
function QBCore.Functions.CreateUseableItem(item, data)
QBCore.UsableItems[item] = data
end
To avoid any error prints when you restart a resource go to qb-core/server/events.lua
delete the event onResourceStop
--[[
AddEventHandler("onResourceStop", function(resName)
for i,v in pairs(QBCore.UsableItems) do
if v.resource == resName then
QBCore.UsableItems[i] = nil
end
end
end)
]]--
This errors are caused by qb-core and not my scripts.