Better explaination/scripting

It’s quite a vague question. Your best bet may be simply starting to make a few simple resources, and work your way up whilst studying the source code of different resources you’re attempting to replicate and improve, like ESX and it’s plugins.

mysql-async is an absolute pain in the backside in my experience, but can be done by hosting a WAMPServer on your VDS/VPS or if hosted with a host such as zap, it provides an SQL database for you.

Creating the menus,car spawners and apartments are all things you’ll have to just research like hell to figure out but here’s some useful resources for you…

GitHub - warxander/warmenu: FiveM Lua Menu Framework (Absolutely love this)