Add files via upload
This commit is contained in:
22 files changed
+2196
No files matched your search
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
Bridge is a simple module that allows allows multi framework compatability.
|
||||
All framework code has been taken from Renewed-Lib which can be found here:
|
||||
https://github.com/Renewed-Scripts/Renewed-Lib
|
||||
]]
|
||||
|
||||
local function hasFramework(framework)
|
||||
return GetResourceState(framework) ~= 'missing'
|
||||
end
|
||||
|
||||
local framework = hasFramework('ox_core') and 'ox' or hasFramework('qb-core') and 'qb' or hasFramework('qbx_core') and 'qb' or hasFramework('es_extended') and 'esx' or nil
|
||||
|
||||
if not framework then
|
||||
return print('No framework detected')
|
||||
end
|
||||
|
||||
local resource = ('bridge.%s.client'):format(framework)
|
||||
|
||||
require (resource)
|
||||
Reference in new issue
Block a user