Because i try the script and if it dont work i ask for help but im just seeing if i have done this one right i promis i wont ask again unless i have to
The only way to make sure you are doing something right is by testing what you have done. If you are having issues, I suggest you first strengthen up your skills on lua first and have a look at other resources before you dive into making your own.
No, it’s not. It’s riddled with syntax errors…
Honesty, the best thing to do is learn how to program in a language, then you can come back and figure out the particulars of FiveM.
You can start learning Lua or C#. Once you know how to program in the language, you can look at other peoples resources to figure out how to do stuff. You can also take a look at the wiki or, the natives to find what can and can’t be used.
By looking at your code, I would say you need to take another look at learning Lua. You’ve made some very basic mistakes. This includes, missing parentheses, missing functions, missing variables, not calling functions correctly, not ending conditions and wrong variable assignments.