Just the playerPed = GetPlayerPed(-1)
inside the loop. For example: after the Citizen.Wait(0)
And an other tipp, I think you will need to clear the last relationship before setting a new one, because if you switch a ped with this script for ex.: If you in the family and you switch to ballas then you will be friends with the family and ballas too