1. I have to get there 5 minutes ahead (of time).
2. I have to get there 5 minutes before.
3. You'd better be there ahead the opening ceremony.
4. You'd better be there before the opening ceremony.
5. I was there ahead of you.
6. I was there before you.