#No such export GetCoreObject in resource qbx_core

1 messages · Page 1 of 1 (latest)

broken oracle
#

No such export GetCoreObject in resource qbx_core

QBCore = exports['qbx_core']:GetCoreObject()
DebugPrint("^2[REPORTS] Using QBX Framework^0")

#

is this right if not what would it be

#

if FRAMEWORK == "ESX" then
ESX = exports['es_extended']:getSharedObject()
DebugPrint("^2[REPORTS] Using ESX Framework^0")
elseif FRAMEWORK == "QB" then
QBCore = exports['qb-core']:GetCoreObject()
DebugPrint("^2[REPORTS] Using QBCore Framework^0")
elseif FRAMEWORK == "QBX" then
QBCore = exports['qbx_core']:GetCoreObject()
DebugPrint("^2[REPORTS] Using QBX Framework^0")
elseif FRAMEWORK == "VRP" then
local Proxy = module("vrp", "lib/Proxy")
VORP = Proxy.getInterface("vRP")
DebugPrint("^2[REPORTS] Using VRP Framework^0")
else
DebugPrint("^2[REPORTS] Using Standalone (No Framework)^0")
end

gusty cipher
broken oracle
upper maple
restive notch
restive notch
#

Because last i checked, it uses the qbcore getcoreobject, not its own.

upbeat dew
#

The bridge uses that yes, qbx itself doesn't use get coreobject. Bruiser is reffering to his code that is trying to call that.

elseif FRAMEWORK == "QBX" then
    QBCore = exports['qbx_core']:GetCoreObject()
    DebugPrint("^2[REPORTS] Using QBX Framework^0")

Which doesn't exist.

#

You don't need to call the whole core like qbcore to enable exports.

restive notch
#

That's what i was referring to, Qbox doesn't use its own GetCoreObject, since it doesn't have one, so it relies on QBCores, no?

upbeat dew
#

No, If your setting up a config that sets the framework. You shouldn't be relying on the bridge at that point

restive notch
#

Oh wait, you're right, man, i should probably get some sleep.

upbeat dew
#

😛 No worries xD Thought like dafuq your statement was the one misleading xD

#

got confused for a sec started to doubt myself