ADD - implement FlipTok creator platform

This commit is contained in:
Leon.Schmidt
2026-08-09 01:50:37 +02:00
parent eefe3b5331
commit 2ca96504d3
26 changed files with 4523 additions and 54 deletions
+35
View File
@@ -60,6 +60,25 @@ local server_callbacks = {
"pages:share-citymarkt",
"pages:react",
"pages:delete",
"fliptok:bootstrap",
"fliptok:feed",
"fliptok:discover",
"fliptok:publish",
"fliptok:react",
"fliptok:follow",
"fliptok:comments",
"fliptok:comment",
"fliptok:view",
"fliptok:share",
"fliptok:profile",
"fliptok:update-profile",
"fliptok:activities",
"fliptok:mark-activities",
"fliptok:report",
"fliptok:admin-reports",
"fliptok:admin-resolve-report",
"fliptok:block",
"fliptok:delete",
"calendar:list",
"calendar:create",
"calendar:update",
@@ -387,6 +406,22 @@ RegisterNetEvent("sky_phone:marketplace:changed", function(data)
SendNUIMessage({ type = "marketplace:changed", data = data })
end)
RegisterNetEvent("sky_phone:fliptok:command-feedback", function(data)
Bridge.Framework.Notify("FlipTok", data.message, data.notificationType, 5000)
end)
RegisterNetEvent("sky_phone:fliptok:verification-changed", function(data)
SendNUIMessage({ type = "fliptok:verification-changed", data = data })
end)
RegisterNetEvent("sky_phone:fliptok:new", function(data)
local fliptok_locale = get_locale().Nui.Apps.fliptok
local notification_text = fliptok_locale.notifications[data.kind] or fliptok_locale.notifications.default
data.title = fliptok_locale.name
data.text = notification_text:gsub("{actor}", tostring(data.actor or ""))
SendNUIMessage({ type = "fliptok:new", data = data })
end)
RegisterNetEvent("sky_phone:marketplace:new-message", function(data)
local marketplace_locale = get_locale().Nui.Apps.citymarkt
data.title = marketplace_locale.name