I mean that was pretty specific
For creating NUI stuff and communicating between NUI and Lua, there’s a tutorial on the forum. You will need to also look up HTML and CSS to style the UI how you want (Google can yield basic tutorials).
As for the command, you can use the REGISTER_COMMAND native to handle the command and show the UI.