π1. Group and Task ID
The basics to retrieve information from the current Group and current Task.
local ESX = exports["es_extended"]:getSharedObject()local GroupID
local TaskTitleRegisterNetEvent('--:client:ReceiveInfoGroup')
AddEventHandler('--:client:ReceiveInfoGroup', function(receivedGroupID, receivedTaskTitle)
-- Here, we update the variables!
GroupID = receivedGroupID
TaskTitle = receivedTaskTitle
end)
-- You can call the event in this way if you want to update it for all members.
-- TriggerServerEvent('nelo_tablet:server:GroupEvent', GroupID, "client", "--:client:ReceiveInfoGroup")
-- #Don't worry, you'll learn how to manipulate group events later on.Last updated