Need help with my program

I have been working on this system that would make a player unconscious for a curtant time when having a hp lower then 30.
It is not finished yet but when I did a quick check it didn’t want to work. I am quite new to Lua and dont know what is the problem it doesn’t seem to show any errors but it just doesn’t work.
Please help me with this.

hook.Add( “PlayerShouldTakeDamage”, “PlayerSayExample”, function( ply, text, team )
if ply:Health() <= 30 then
RunConsoleCommand( “ulx ragdoll”, “ply:SteamID” )
hook.Call(“HUDPaint_DrawABox”)
hook.Add( “HUDPaint”, “HUDPaint_DrawABox”, function()
draw.RoundedBox( 0, 0, 0, 2500, 2500, Color( 0, 0, 0, 255 ))
end)
end
end)

You’re calling a clientside hook in a serverside hook and “ply:SteamID” should be ply:SteamID().