fix framwork
This commit is contained in:
parent
c3ef6cc962
commit
c18e606d10
|
@ -22,7 +22,8 @@ Config.EnableModules = {
|
|||
Config.Debug = true
|
||||
Config.Nui = false
|
||||
Config.Dev = false
|
||||
Config.Framework = "custom" -- "qb" | "esx" | "custom"
|
||||
---@type "qb" | "esx" | "ProjectStarboy" | "standalone"
|
||||
Config.Framework = "standalone" -- "qb" | "esx" | "custom"
|
||||
Config.ClientLazyLoad = false
|
||||
|
||||
function L(key, ...)
|
||||
|
|
13
main.lua
13
main.lua
|
@ -391,6 +391,19 @@ Citizen.CreateThread(function()
|
|||
while Framework == nil do
|
||||
main:LogInfo("Waiting for Framework")
|
||||
Wait(100)
|
||||
if Config.Framework == 'esx' then
|
||||
Framework = exports["es_extended"]:getSharedObject()
|
||||
elseif Config.Framework == "qb" then
|
||||
Framework = exports['qb-core']:GetCoreObject()
|
||||
elseif Config.Framework == "ProjectStarboy" then
|
||||
Framework = CORE
|
||||
else
|
||||
Framework = {}
|
||||
Framework.Functions = {}
|
||||
Framework.Functions.GetPlayerData = function()
|
||||
return {}
|
||||
end
|
||||
end
|
||||
end
|
||||
main:InitImpl()
|
||||
if not IsDuplicityVersion() then
|
||||
|
|
Loading…
Reference in New Issue
Block a user