Hi,
Based on the information provided in the question it would seem appropriate to complete a Self Assessment tax return for the 2023-24 tax year.
You will need to establish your residence status for the UK tax year in the first instance as this will then be the basis for how the tax return should be completed and will identify which country has taxation rights on the freelance contract payment which would seem to class as self employment income.
The “Business profits” and permenant establishment” articles of the Double Taxation agreement the UK have with the other country in question will confirm the taxation position.
A P85 will not be needed the tax liability can be established through the self assessment tax return.
RDR3: Statutory Residence Test (SRT) notes
Thankyou.