i don’t know why, but the event is not triggered. I don’t find my error… And there is no erro in server/client console.
Client:
RegisterNetEvent("kyl_client_weber:SetChicken")
Citizen.CreateThread(function()
while true do Citizen.Wait(1)
TriggerServerEvent('kyl_server_weber:Chicken')
end
end)
AddEventHandler("kyl_client_weber:SetChicken", function(chicken)
Citizen.Trace('Chicken Server Code:'..chicken)
end)
Server:
RegisterServerEvent("kyl_server_weber:Chicken")
AddEventHandler("kyl_server_weber:Chicken", function()
TriggerClientEvent('kyl_client_weber:SetChicken', GetConvar('chicken'))
end)
best regards,
KonScyence