Functions
if Config.Framework == "NEW" then
QBCore = exports[Config.CoreName]:GetCoreObject()
elseif Config.Framework == "OLD" then
local QBCore = nil
CreateThread(function()
while QBCore == nil do
TriggerEvent(Config.CoreName, function(obj)QBCore = obj end)
Wait(200)
end
end)
else
print("The Framework '", Config.Framework, "' is not support, please change in config.lua")
end
function Notify(msg, type)
if type == "primary" then
QBCore.Functions.Notify(msg, "primary")
end
if type == "success" then
QBCore.Functions.Notify(msg, "success")
end
if type == "error" then
QBCore.Functions.Notify(msg, "error")
end
end
Last updated