Determine what instrument you will use to play the G5 chord. It can be played on piano or guitar fairly easily.
Play the G5 chord on the guitar by placing your first finger on the E string just behind the third fret and your second finger on the A string just behind the fifth fret. A three-note G5 chord can be played by adding the third finger to the D string just behind the fifth fret.
Create the G5 chord on the piano by using the first and fifth finger of either hand to play G and D on the keyboard. Again, you can make this a three-note chord by doubling the G an octave above the lowest G. You can voice this chord in any way you like.