rcore.cz
  • rcore.cz
  • Installation
  • github wiki
  • ESX
    • ESX Instance
    • Jobs
    • esx_datastore
  • Natives
    • Markers
    • 3D Text
    • Common functions
    • Command system
    • Camera API
    • Objects
    • Blips
    • Discord sender
  • Our links
    • Discord
    • Github
    • Our service
Powered by GitBook
On this page
  • Client side
  • Server side

Was this helpful?

  1. ESX

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)
Previousgithub wikiNextJobs

Last updated 4 years ago

Was this helpful?