Hi
Can QB-Core and ESX be applied at the same time when creating a fivem server???
Hi
Can QB-Core and ESX be applied at the same time when creating a fivem server???
Short Answer: no
// My english is basic so I will not be able for explain all… but
All the scripts will break; and mostly of them will depend of QB or ESX for work (if they are standalone), also both has the needed for handle characters and… ![]()
![]()
You will need to choose one for your project~
Hey,
imkuroneko pretty easily stated that its not possible, but well, here we meet the concept of frameworks which are basically 1:1 versions of themselves(most functions are the same). You may be able to translate some if not most of function ESX or QBCore has to offer. For example
QBCore.Functions.GetPlayers == ESX.GetPlayers
QBCore.Functions.CreateCallback == ESX.RegisterServerCallback
QBCore.Functions.CreateUseableItem == ESX.RegisterUsableItem
QBCore.Functions.GetPlayer == ESX.GetPlayerFromId
Names are different for sure, but most importantly, its the same logic behind them.
I may spend some of my free time creating something simulating ESX or QBCore scripts for one or other framework.
But for now, your best bet is on changing the names of framework methods in scripts to corresponding ones in your current framework.
qbsxmodule.lua (82.5 KB)
Biga most of server stuff done, client was just too much for me to ever care about and I don’t use qbcore, maybe somebody else will make this a thing
Is this a qbcore script?
This is somewhat badly made script on first glance. Looks more like a remade version of functions.lua of ESX. I mean, if it works you may use it, but Jiminy only sent here server side, so you won’t get much of use from it.
And its ESX funtions remade for QBCore
The file above would be used inside of QBCore yes. The file is an example of a system that would allow the simultaneous use of both QB and ESX framework resources that do not rely on database information, and with some tweaking I’m sure could even accept database stuff properly. As noted by rocket, the file is the most simple version creatable, and is only supported for the server side functions. Someone with more time, desire, and a running QB server would be required to complete the file and provide client functionality as well.