If the company is close (5 or fewer participators/directors), the payment may be treated as a distribution, taxable in the company. You as director would also be liable to income tax on the amount at your marginal rate with a credit allowed for the tax already paid by the company.
Certain benefits are exempt from tax, including the provision of any lump sum on the retirement of a director. This exemption might only be available if the company is continuing trading. Complex. You may need to seek professional advice here.