25 lines
483 B
Lua
25 lines
483 B
Lua
|
|
---@return string
|
|
local GetFramework = function()
|
|
if GetResourceState('es_extended') ~= 'missing' then
|
|
return 'esx'
|
|
elseif GetResourceState('qbx_core') ~= 'missing' then
|
|
return 'qbx'
|
|
elseif GetResourceState('qb-core') ~= 'missing' then
|
|
return 'qb'
|
|
elseif GetResourceState('ox_core') ~= 'missing' then
|
|
return 'ox'
|
|
else
|
|
return 'standalone'
|
|
end
|
|
end
|
|
|
|
---@type string
|
|
Framework = GetFramework() -- qb / esx /qbox /ox
|
|
|
|
|
|
|
|
|
|
|
|
|