Help, What is necessary to know and do when creating a fivem rp servem?

I am completely new to creating fivem servers and want to know everything needed to create one and how run it. For example what is the best hosting service that isn’t to expensive? and what mods exc.
Please help!

First of all take a look at Lua programming, the diference between client and server sides and go around public scripts to learn how them are made.

Public scripts such as ESX or vRp?

They both are frameworks. Take a look at them and the main differences, then try using whatever you want.