Compiling Linux server from scratch

I need help compiling a Linux FiveM server from the source code.

I was trying to replicate Building Linux Server from source on Linux - #22 by nta but sadly it seems like the building process changed over the years

Does anyone have any way to compile the source code for a server or individual components (libcitizen-server-impl.so or libcitizen-server-state-fivesv.so)?

I can use any operating system if anyone has a guide already

Any help will be greatly appreciated

There‘s a Powershell script for Alpine WSL builds integrated into the fxd toolkit. Just run fxd wsl-build and then fxd wsl-run in a command-line on Windows. For general build prerequisites just follow: fivem/docs/building.md at master · citizenfx/fivem · GitHub.