To honk the horn in GTA 4 on the PS3, simply press the left analog stick down.
Giving that stick a downward push while you're in a vehicle will sound the horn, which is handy whether you're greeting traffic or just letting off some frustration.