structura foldere

mutat kq- folders in un singur folder [kq]
This commit is contained in:
2026-03-30 01:55:03 +03:00
parent af1286d583
commit c291b81f26
2319 changed files with 0 additions and 14 deletions
@@ -0,0 +1,8 @@
if Config.Billing ~= 'RxBilling' then return end
---@param id number
---@return boolean
function PayInvoice(id)
local invoice, msg = exports.RxBilling:PayInvoice(id)
if invoice then return true end
end
@@ -0,0 +1,9 @@
if Config.Billing ~= 'codemv2' then return end
---@param id number
---@return boolean
function PayInvoice(id)
TriggerServerEvent('codemBilling:PayInvoice', id)
Wait(250) -- Wait until the server has processed the request (this is a bad way to do it. Use callbacks instead)
return true
end
@@ -0,0 +1,21 @@
if Config.Billing ~= 'esx_billing' then return end
---@param id number
---@return boolean
function PayInvoice(id)
local co = coroutine.running()
if not co then
return false
end
local result = false
ESX.TriggerServerCallback('esx_billing:payBill', function(resp)
if resp then
TriggerEvent('esx_billing:paidBill', id)
result = true
end
coroutine.resume(co, result)
end, id)
return coroutine.yield()
end
@@ -0,0 +1,9 @@
if Config.Billing ~= 'okok' then return end
---@param id number
---@return boolean
function PayInvoice(id)
TriggerServerEvent('okokBilling:PayInvoice', id)
Wait(250) -- Wait until the server has processed the request (this is a bad way to do it. Use callbacks instead)
return true
end
@@ -0,0 +1,8 @@
if Config.Billing ~= 'qs' then return end
---@param id number
---@return boolean
function PayInvoice(id)
TriggerEvent('qs-billing:client:Notify', 'You must go to pay it presentialy or in your invoice tablet', 'info')
return true
end
@@ -0,0 +1,7 @@
if Config.Billing ~= 'standalone' then return end
---@param id number
---@return boolean
function PayInvoice(id)
return TriggerServerCallbackSync('phone:payInvoice', id)
end