onPlayerConnecting

Server:

AddEventHandler(‘playerConnecting’, function(source,playerName, setKickReason)
TriggerClientEvent(“simpletest”, source)
end)

Client:

RegisterNetEvent(“simpletest”)
AddEventHandler(“simpletest”, function()
Citizen.Trace(“called”)
end)

Why is this not getting called? I also tried to add the function params on the client part, still not working.

AddEventHandler("playerConnecting", function(playerName, setKickReason)
    local src = source
    TriggerClientEvent("simpletest", src)
end)

Still not working!

I’m tired of this, any solutions?