ADD - implement billing app

This commit is contained in:
smx.pusha
2026-08-10 09:35:52 +02:00
parent 384b4cb84e
commit 6fbb358932
19 changed files with 2672 additions and 0 deletions
+19
View File
@@ -158,6 +158,12 @@ local server_callbacks = {
"calls:hangup",
"banking:overview",
"banking:transfer",
"billing:overview",
"billing:list",
"billing:detail",
"billing:markRead",
"billing:pay",
"billing:dispute",
"messages:conversations",
"messages:thread",
"messages:send",
@@ -597,6 +603,19 @@ RegisterNetEvent("sky_phone:banking:changed", function()
SendNUIMessage({ type = "banking:changed" })
end)
RegisterNetEvent("sky_phone:billing:changed", function()
SendNUIMessage({ type = "billing:changed" })
end)
RegisterNetEvent("sky_phone:billing:new", function(data)
local billing_locale = get_locale().Nui.Apps.billing
data.title = billing_locale.name
data.text = billing_locale.notifications.newInvoice
:gsub("{issuer}", tostring(data.issuer))
:gsub("{amount}", ("%s %s"):format(tostring(data.amount), Config.Billing.Currency))
SendNUIMessage({ type = "billing:new", data = data })
end)
RegisterNetEvent("sky_phone:messages:changed", function(data)
SendNUIMessage({ type = "messages:changed", data = data })
end)