ADD - implement CrewLink location groups

This commit is contained in:
smx.pusha
2026-08-10 21:02:09 +02:00
parent a2e227d624
commit db623e73e6
20 changed files with 3866 additions and 0 deletions
+35
View File
@@ -147,6 +147,25 @@ local server_callbacks = {
"map:markers",
"map:create-marker",
"map:delete-marker",
"crewlink:bootstrap",
"crewlink:create-profile",
"crewlink:update-profile",
"crewlink:create-group",
"crewlink:update-group",
"crewlink:delete-group",
"crewlink:set-active",
"crewlink:join-code",
"crewlink:rotate-code",
"crewlink:nearby",
"crewlink:invite-nearby",
"crewlink:respond-invite",
"crewlink:update-member",
"crewlink:transfer-owner",
"crewlink:remove-member",
"crewlink:leave",
"crewlink:create-ping",
"crewlink:remove-ping",
"crewlink:live",
"sim:insert",
"sim:eject",
"contacts:list",
@@ -617,6 +636,22 @@ RegisterNetEvent("sky_phone:billing:new", function(data)
SendNUIMessage({ type = "billing:new", data = data })
end)
RegisterNetEvent("sky_phone:crewlink:changed", function(data)
SendNUIMessage({ type = "crewlink:changed", data = data })
end)
RegisterNetEvent("sky_phone:crewlink:notification", function(data)
local crewlink_locale = get_locale().Nui.Apps.crewlink
local notification_text = crewlink_locale.notifications[data.kind]
or crewlink_locale.notifications.default
data.title = crewlink_locale.name
data.text = notification_text
:gsub("{actor}", tostring(data.actor or ""))
:gsub("{group}", tostring(data.groupName or ""))
:gsub("{ping}", tostring(data.pingLabel or ""))
SendNUIMessage({ type = "crewlink:notification", data = data })
end)
RegisterNetEvent("sky_phone:messages:changed", function(data)
SendNUIMessage({ type = "messages:changed", data = data })
end)