ESX Instance

How to use ESX instance with rcore

If you are using some sort of anticheat that will change your callbacks for ESX don't forget to change it in config or rcore cannot load ESX instance, it can cause it that players will not be able to connect to a server

Client side

your_clientside.lua
rcore = exports.rcore
rcore:getEsxInstance(function(obj)
    ESX = obj
end)

Server side

your_serverside.lua
rcore = exports.rcore
rcore:getEsxServerInstance(function(esx)
    ESX = esx
end)

Last updated

Was this helpful?