Hi and welcome, Augustflex!
You should take a look at this
Lua guide for programmers. It explains some of the core concepts of Lua.
If you haven't done so already, you should also read the
Getting Started guide on the wiki and do
this tutorial which gives you an overview of the ESO api.