forked from Simnation/Main
26 lines
No EOL
793 B
Lua
26 lines
No EOL
793 B
Lua
Config = Config or {}
|
|
Config.Framework = false
|
|
Ox, QBCore, ESX = nil, nil, nil -- Framework Objects
|
|
|
|
CreateThread(function()
|
|
if GetResourceState("qb-core") == "started" then
|
|
QBCore = exports['qb-core']:GetCoreObject()
|
|
Config.Framework = "qb"
|
|
return
|
|
end
|
|
if GetResourceState("es_extended") == "started" then
|
|
Config.Framework = "esx"
|
|
ESX = exports['es_extended']:getSharedObject()
|
|
return
|
|
end
|
|
if GetResourceState("qbx_core") == "started" then
|
|
QBCore = exports['qbx_core']:GetCoreObject()
|
|
Config.Framework = "qb"
|
|
return
|
|
end
|
|
if GetResourceState("ox_core") == "started" then
|
|
Config.Framework = "ox"
|
|
Ox = require '@ox_core/lib/init'
|
|
return
|
|
end
|
|
end) |