config_functions
local QBCore = exports[Config.Core]:GetCoreObject()
function Notify(msg, type, time)
if Config.Notify == "standalone" then
BeginTextCommandThefeedPost("STRING")
AddTextComponentSubstringPlayerName(msg)
EndTextCommandThefeedPostTicker(true, true)
elseif Config.Notify == "qb" then
QBCore.Functions.Notify(msg, type, time)
elseif Config.Notify == "okok" then
exports['okokNotify']:Alert('VIP Shop', msg, 5000, type, true)
elseif Config.Notify == "ox" then
lib.notify({ title = 'VIP Shop', description = msg, type = type })
elseif Config.Notify == "esx" then
ESX.ShowNotification(msg, type, time)
end
end
function GetNumberSerie()
local serie = {}
serie[#serie + 1] = tostring(QBCore.Shared.RandomInt(2) .. QBCore.Shared.RandomStr(3) .. QBCore.Shared.RandomInt(1) .. QBCore.Shared.RandomStr(2) .. QBCore.Shared.RandomInt(3) .. QBCore.Shared.RandomStr(4))
return serie
end
Last updated