I know "for" may have different meaning in different context.
I'll cook the dinner for you.
This sentence can be understood as
1) I'll cook the dinner for you to enjoy it. "you" is the recipient of the dinner.
2) I'll, on your behalf, cook the dinner for someone else. "you" was supposed to cook the dinner, but now it is I that'll cook it now.
In Alexander's grammar book, in 1.13.3, it mentions that "for" can refer to the person acting on the recipient's behalf when used after most verbs in 1.13.2, e.g., bring, give, grant, hand, lend, offer, owe, pay etc.
My question is, what does the remark in 1.13.3 mean by refer to the person acting on the recipient's behalf ? I can't make up an example with this meaning. No matter how I arrange the order, like,
I lend the money for you.
The "you" can only refer to the recipient, or the one who was supposed to act, but not I who is on behalf of you.