forked from Simnation/Main
17 lines
No EOL
636 B
Lua
17 lines
No EOL
636 B
Lua
QBCore, ESX = nil, nil
|
|
Framework = {
|
|
Client = {},
|
|
Server = {},
|
|
}
|
|
|
|
if (Config.Framework == "auto" and GetResourceState("qbx_core") == "started") or Config.Framework == "Qbox" then
|
|
Config.Framework = "Qbox"
|
|
elseif (Config.Framework == "auto" and GetResourceState("qb-core") == "started") or Config.Framework == "QBCore" then
|
|
QBCore = exports['qb-core']:GetCoreObject()
|
|
Config.Framework = "QBCore"
|
|
elseif (Config.Framework == "auto" and GetResourceState("es_extended") == "started") or Config.Framework == "ESX" then
|
|
ESX = exports["es_extended"]:getSharedObject()
|
|
Config.Framework = "ESX"
|
|
else
|
|
Config.Framework = "none"
|
|
end |