I don’t want to get into a language bickering thread as those aren’t productive. I just want to ask a simple question:
Why are so many new resources written in Lua?
From my point of view TypeScript, modern JavaScript and C# are all well supported and can get just as good functionality as Lua. Their syntax and code structure are generally more understandable and they are generally fully matured languages capable of building and scaling large projects.
Just curious.
Yes, you are absolutely right. JS, TS, C#, and C++ are all great languages with many applications outside of FiveM/RedM. However, the syntax for Lua is much easier to learn. Many developers start there because they find it easy and a good place to be on FiveM. No lie, the language is useful here, but outside of specific runtimes and within Roblox, FiveM, and RedM, there are few uses. I totally agree, but this is just how the community works here
.
Also in FiveM community not so manydevelopers, who are able to write something on their own - most part of server creators are people without knowledge of programming and they just “building” server, like a puzzle, editing configs and sometimes edit something in source code. Novadays if you try to find a developer for a server, you will see how hard it is.
For those people, who are used alreadt to edit Lua code will mostly use Lua, then Javascript. And script creators will mostly develop scripts in Lua, if they want to involve people to use their scripts.
Lua was the best supported Language in the early times of this Mod, JS was only added “recently”, for me, it’s also personal preference, i would not use JS over Lua.
I personally started learning Lua due to a specific GTA San Andreas Mod, when switching to FiveM, the choice was obvious, C# never really interested me when it comes to Scripting, as Lua is much faster to set up and to start coding.
I assume for many more the simplicity of Lua is also a factor, its a powerful language, which is very easy to get into, and it’s very lineant on formatting and syntax.
Also,
Is very subjective, as all code can be understandable, or a terrible mess.
1 Like