This native is a server side native which requires OneSync enabled to run it. It gets triggered when a player respawns.
string player, table content
This example prints the name of the player and his coordinates on respawn.
AddEventHandler("respawnPlayerPedEvent", function(player, content) print(GetPlayerName(player).." has spawned at "..tostring(content.posX)..", "..tostring(content.posY)..", "..tostring(content.posZ)) end)