[HELP] Triggering and Recieving events?

Hello, I am working on a test script so that I can test events. This is what i’ve got so far.

___resource.lua

server_script '@mysql-async/lib/MySQL.lua'
server_script 'server.lua'
client_script 'client.lua'

client.lua

Citizen.CreateThread(function()
    Citizen.Trace("Created control thread")
    while true do
        Citizen.Wait(1)
        if IsControlJustPressed(1, 166)  then
		TriggerServerEvent("Test", "steam:11000010415b0d5", "HI")
        end
    end
end)

server.lua

RegisterServerEvent('Test')
AddEventHandler('Test', function(identifier, hi))
	print(identifier.." "..hi)
end)

Has anyone got any ideas why this is not working?

you have two closing brackets here, there only should be one

I’ve removed the second bracket but it still doesn’t seem to print anything? I made the client print(“KeyPressed”) after it ran the function and that ran fine, just doesn’t seem to print on the server script? Does it print somewhere different?

It’s prints in your console. Press f8 ingame & you will see it showing up.