forked from Simnation/Main
ed
This commit is contained in:
parent
5a5b4b855d
commit
f57a27b8df
152 changed files with 1554 additions and 0 deletions
17
resources/[tools]/jg-hud/framework/main.lua
Normal file
17
resources/[tools]/jg-hud/framework/main.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue