Hi, last time i made server callback, witch sends to client decoded JSON table. Looks and works as shown below.
RegisterServerEvent("typol:cbinfo")
AddEventHandler("typol:cbinfo", function(source)
print("sv is good " .. source .. lista[1].hex) -- this is test, and it's working
TriggerClientEvent("typol:cbclient", source, lista)
end)
RegisterNetEvent("typol_do2:cbclient")
AddEventHandler("typol_do2:cbclient", function(serverId, lista)
print("dziala") -- not displays on client console
end)
Source is: GetPlayerPed(-1)
Please, help me, solving this problem.
Thanks for any help.