What’s the best way to learn GLua without relying on AI?

0
1
Asked By MellowCedar42 On

I recently started learning to code and know the basics of Python and Lua. Since I want to create addons for Garry's Mod, I've started learning GLua, but most of my learning has come from AI, and some of its explanations and code are incorrect. How did you learn scripting efficiently without depending on AI or following one specific tutorial?

2 Answers

Answered By BrightOtter91 On

Try using the official Garry’s Mod wiki as your main reference instead of asking AI to generate complete addons. Look up hooks and entity functions, copy a small example into a simple test addon, and run it in the game. Then change one argument or line at a time and observe what happens. You can also use the console to run small Lua snippets while experimenting. AI is still useful for troubleshooting or explaining unfamiliar code, but verify everything against the documentation and test it yourself.

MellowCedar42 -

I’ve watched some programming tutorials and written notes explaining what each line does. I mainly use AI to troubleshoot or introduce me to unfamiliar syntax, but I’ll spend more time checking the official wiki and testing examples directly.

Answered By QuietHarbor7 On

Books and structured programming references can help a lot. They give you a clearer foundation than jumping between random generated explanations, especially for learning general concepts like variables, functions, tables, and debugging.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.