You asked

Can I use a cheaper third party 85mm lens on a nikon z5 for portraits and what do I give up?

A third-party 85mm can work well on the Nikon Z5, and the catalogue lists several that fit its Nikon Z mount. The portraits guide calls the 85mm f/1.8 the classic full-frame portrait lens, with flattering perspective, soft backgrounds and a comfortable working distance, so the focal length is right for your goal.

Good options to compare are the Viltrox AF 85mm f/1.8 II, the Viltrox AF 85mm f/1.4 Pro if you want a wider aperture, and the Meike 85mm f/1.8 STM as a simple budget choice. For a native comparison, the Nikon Z 85mm f/1.8 S sits at the top of the price range. The Z5 page lists all of these.

What you give up is usually some combination of autofocus speed and accuracy, build quality and weather sealing, and sometimes a slower or less consistent aperture than the best native lenses. Check each lens page for its specifications before you buy. Prices change, and each lens page has a "Price in France" section with the date checked and shop links, so the guide doesn't quote prices here.

Before you buy, check that the lens supports the Z5's autofocus features, such as eye detection, and that the lens maker allows third-party lenses on the Nikon Z mount. Not every brand does, as explained on the lenses page. If you also want to shoot people indoors or in dim light, the portraits guide explains why the 50mm f/1.8 is a cheaper first portrait lens.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.