🖱️Client and Server
The basics of client and server event synchronization.
In the practical example below, we show how to synchronize the event for members of a Client(or Server) Event.
Remember that, regardless of whether it's an event to be synchronized on the server or client, we always have the same step-by-step process.
RegisterNetEvent('--:client:SendData')
AddEventHandler('--:client:SendData', function()
Data = {
value1 = ?,
value2 = ?,
value3 = ?
}
TriggerServerEvent('--:server:GroupEvent', GroupID, "client", 'client event here', {Data})
end)Now, let's explain in more depth what happens with each segment.
,
,
,
,
)
Click on each step to better understand your guide.
-- #GROUP EVENT#
RegisterServerEvent('--:server:GroupEvent')
AddEventHandler('--:server:GroupEvent', function(groupID, event_type, event, args)
exports["nelo-tablet"]:NeloGroupEvent(groupID, event_type, event, args)
end)Last updated