FiveM Lua Dev
Hi there!
I'm currently looking to take on some Fiverr gigs at a very affordable rate. I have over 2 years of experience in Lua development and a year of experience as a full-stack developer.
Whether you need a simple noscript or a large-scale project, I can deliver clean, documented, reliable code for just a few bucks. I'm building up my Fiverr portfolio and would love to help bring your ideas to life!
Feel free to reach out - let’s work together!
https://redd.it/1m5ud8e
@r_lua
Hi there!
I'm currently looking to take on some Fiverr gigs at a very affordable rate. I have over 2 years of experience in Lua development and a year of experience as a full-stack developer.
Whether you need a simple noscript or a large-scale project, I can deliver clean, documented, reliable code for just a few bucks. I'm building up my Fiverr portfolio and would love to help bring your ideas to life!
Feel free to reach out - let’s work together!
https://redd.it/1m5ud8e
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Beginner code question on nested tables
I am trying to construct and print a nested table In this simple example:
#!/usr/bin/env lua
company = {director="boss",
{address="home",
{zipcode ="12345"}
}
}
print(company.director) --> boss
print(company.director.address) --> nil - was expecting 'home'
print(company.director.address.zipcode)
print(company"director") --> boss
print(company"director""address") --> nil - was expecting 'home'
print(company"director""address""zipcode")
It prints nil where I was expecting it to print 'home'.
What am I doing wrong?
https://redd.it/1m61yq3
@r_lua
I am trying to construct and print a nested table In this simple example:
#!/usr/bin/env lua
company = {director="boss",
{address="home",
{zipcode ="12345"}
}
}
print(company.director) --> boss
print(company.director.address) --> nil - was expecting 'home'
print(company.director.address.zipcode)
print(company"director") --> boss
print(company"director""address") --> nil - was expecting 'home'
print(company"director""address""zipcode")
It prints nil where I was expecting it to print 'home'.
What am I doing wrong?
https://redd.it/1m61yq3
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Sol2 and Modules
What are your thoughts on using cpp and sol2 library to create Modules to use in lua noscripts?
Do you prefer a Module written in c/cpp with the pure lua api, or Is It ok to use sol2?
https://redd.it/1m677cb
@r_lua
What are your thoughts on using cpp and sol2 library to create Modules to use in lua noscripts?
Do you prefer a Module written in c/cpp with the pure lua api, or Is It ok to use sol2?
https://redd.it/1m677cb
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Luans - a Lua Learning App inspired by Koans (beta)
Hey everyone,
We’ve created a small web app to help people get started with Lua: [**play.tenum.app**](https://play.tenum.app)
It’s inspired by Kotlin Koans — we’re calling it **Luans**.
Each exercise is structured as a failing unit test, and your goal is to make it pass. The idea is to learn Lua through hands-on practice, one small step at a time.
Right now, the app is super basic and only contains a few lessons. We're testing right now and would love to hear from this community:
* Is this format helpful for learning Lua?
* What kinds of exercises or topics would you want to see?
* Are there other Lua learning platforms/tools you’ve used or recommend?
We’re considering investing more time into it, so your feedback would mean a lot.
Thanks in advance
https://redd.it/1m6bykq
@r_lua
Hey everyone,
We’ve created a small web app to help people get started with Lua: [**play.tenum.app**](https://play.tenum.app)
It’s inspired by Kotlin Koans — we’re calling it **Luans**.
Each exercise is structured as a failing unit test, and your goal is to make it pass. The idea is to learn Lua through hands-on practice, one small step at a time.
Right now, the app is super basic and only contains a few lessons. We're testing right now and would love to hear from this community:
* Is this format helpful for learning Lua?
* What kinds of exercises or topics would you want to see?
* Are there other Lua learning platforms/tools you’ve used or recommend?
We’re considering investing more time into it, so your feedback would mean a lot.
Thanks in advance
https://redd.it/1m6bykq
@r_lua
My awesome PWA app
Best PWA app in the world!
Working on a Wireshark parser, why does TreeItem:add_le() not reverse strings too?
My first instinct would be to post to r/wireshark, but last time I had a similar question I was directed here. Apologies if that’s incorrect.
[Link to line in docs](https://www.wireshark.org/docs/wsdg_html_chunked/lua_module_Tree.html)
Trying to fetch a little endian string, but it’s reversed because apparently the little endian add function only works on numbers? This feels really wrong, I can’t imagine why it works like this. Let me know if a more elegant way to display this is known.
https://redd.it/1m6m516
@r_lua
My first instinct would be to post to r/wireshark, but last time I had a similar question I was directed here. Apologies if that’s incorrect.
[Link to line in docs](https://www.wireshark.org/docs/wsdg_html_chunked/lua_module_Tree.html)
Trying to fetch a little endian string, but it’s reversed because apparently the little endian add function only works on numbers? This feels really wrong, I can’t imagine why it works like this. Let me know if a more elegant way to display this is known.
https://redd.it/1m6m516
@r_lua
I Make Steam Capsule Art That Pops! DM Me If You Want It For Your Lua Game
https://redd.it/1m6z3z9
@r_lua
https://redd.it/1m6z3z9
@r_lua
Reddit
From the lua community on Reddit: I Make Steam Capsule Art That Pops! DM Me If You Want It For Your Lua Game
Explore this post and more from the lua community
PLS HELP ME
I have no experience coding but i just wanted to start coding with lua, do yall know what platform is the best to learn coding with lua tysm! BTW ITS FOR GAME DEVELOPMENT
https://redd.it/1m797ho
@r_lua
I have no experience coding but i just wanted to start coding with lua, do yall know what platform is the best to learn coding with lua tysm! BTW ITS FOR GAME DEVELOPMENT
https://redd.it/1m797ho
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
How do I get better in Algorithms/Problem solving in Lua?
I started solving ''LeetCodes'' ( just LeetCode style coding puzzles, generated by ChatGPT since there is no Lua support for LeetCode) about just over a week ago. While I thought I finally got mastered for loops and tables, I now realize that my problem solving skills just suck and I would just keep failing most of the easy difficulty questions... For context, the average easy question would be something like finding the longest substring with no recurring/repeating letters or finding if a string is an Anagram, some other stuff with numbers like finding two pairs in a table that equal to target using just one for loop and other stuff that like that all of which require Hash tables which I really suck at... I have no idea what I can do to improve, other than just keep asking ChatGPT to explain stuff in more detail which it either can't do properly or I'm just too stupid for this... Sadly, unlike other languages, apart from having no LeetCode support, there are also minimal Lua tutorials when it comes to this kind of stuff, 0 on YouTube as far as I'm concerned so I just don't know how to progress with it. Maybe I am just stupid lol, I found a 7th grader the other day cranking c++ LeetCodes like the fucking legend he is, meanwhile I'm out here struggling to solve a LeetCode in what is possibly the most high-end programming language known to man... Any tips on getting better with algorithms and stuff like that in general and mainly mastering it inside Lua?(any good places to find tutorials maybe??) Also how do I get more used to hash tables and known how to use them properly? (additionally, I would ask whatever ''time complexity'' is but maybe that's a lesson for another a time) Basically how do I adapt to all of those situations I'm just so lost...
Any help will be appreciated! Seriously... D:
https://redd.it/1m7pyfb
@r_lua
I started solving ''LeetCodes'' ( just LeetCode style coding puzzles, generated by ChatGPT since there is no Lua support for LeetCode) about just over a week ago. While I thought I finally got mastered for loops and tables, I now realize that my problem solving skills just suck and I would just keep failing most of the easy difficulty questions... For context, the average easy question would be something like finding the longest substring with no recurring/repeating letters or finding if a string is an Anagram, some other stuff with numbers like finding two pairs in a table that equal to target using just one for loop and other stuff that like that all of which require Hash tables which I really suck at... I have no idea what I can do to improve, other than just keep asking ChatGPT to explain stuff in more detail which it either can't do properly or I'm just too stupid for this... Sadly, unlike other languages, apart from having no LeetCode support, there are also minimal Lua tutorials when it comes to this kind of stuff, 0 on YouTube as far as I'm concerned so I just don't know how to progress with it. Maybe I am just stupid lol, I found a 7th grader the other day cranking c++ LeetCodes like the fucking legend he is, meanwhile I'm out here struggling to solve a LeetCode in what is possibly the most high-end programming language known to man... Any tips on getting better with algorithms and stuff like that in general and mainly mastering it inside Lua?(any good places to find tutorials maybe??) Also how do I get more used to hash tables and known how to use them properly? (additionally, I would ask whatever ''time complexity'' is but maybe that's a lesson for another a time) Basically how do I adapt to all of those situations I'm just so lost...
Any help will be appreciated! Seriously... D:
https://redd.it/1m7pyfb
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
why isint eof a vaild statement?
i am very very new to lua (about 3 days into learning) and an error in the console is saying that it is excpecting <eof> but recived end and when i try to fix the error i figure out that eof isint a vaild statement (not sure if that is the right term) having the valid statements being colored to match the statement
eof being not colored
https://redd.it/1m85wkd
@r_lua
i am very very new to lua (about 3 days into learning) and an error in the console is saying that it is excpecting <eof> but recived end and when i try to fix the error i figure out that eof isint a vaild statement (not sure if that is the right term) having the valid statements being colored to match the statement
eof being not colored
https://redd.it/1m85wkd
@r_lua
Does a Logitech G915 X allow LUA noscripting?
I'm trying to get a new keyboard to replace my seven year old G910, only two problems...there seems to be no Mkey state for this keyboard, meaning nine macro keys is all you can get, and worse yet my old noscripts don't work at all. This is a major issue because, for some noscripts, it's just too long, and so having to write a noscript is just easier (especially when it comes to adding a comment on what said code is supposed to accomplish), or if you have to move the mouse to a specific place on screen for various actions. Point is noscripting is a real time saver, and I'd like to get it to work, which brings me to my main question: does the Logitech G915 X even allow noscripting in the first place?
I've tried modifying my code from
to
and even
and none of them will cause the noscript to run, which in this case, is just to press and release a random key on the keyboard, and nothing else...it's a test noscript after all. Am I doing something wrong, or is the newest keyboard just two giant summersaults backwards when it comes to the Mkey states and noscripting in general?
https://redd.it/1m8i46r
@r_lua
I'm trying to get a new keyboard to replace my seven year old G910, only two problems...there seems to be no Mkey state for this keyboard, meaning nine macro keys is all you can get, and worse yet my old noscripts don't work at all. This is a major issue because, for some noscripts, it's just too long, and so having to write a noscript is just easier (especially when it comes to adding a comment on what said code is supposed to accomplish), or if you have to move the mouse to a specific place on screen for various actions. Point is noscripting is a real time saver, and I'd like to get it to work, which brings me to my main question: does the Logitech G915 X even allow noscripting in the first place?
I've tried modifying my code from
if (event == "G_PRESSED" and mkey == 1 and arg == 1) thento
if (event == "G_PRESSED" and arg == 1) thenand even
if (event == "G_PRESSED" and arg == G1) thenand none of them will cause the noscript to run, which in this case, is just to press and release a random key on the keyboard, and nothing else...it's a test noscript after all. Am I doing something wrong, or is the newest keyboard just two giant summersaults backwards when it comes to the Mkey states and noscripting in general?
https://redd.it/1m8i46r
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
luau Development (roblox)
Hey! I am very new to luau and i am wondering where i can find some steady information on luau and roblox API. Should i start just learning luau then move onto the roblox api or should i learn the API and luau together?
Thanks.
https://redd.it/1m8pwre
@r_lua
Hey! I am very new to luau and i am wondering where i can find some steady information on luau and roblox API. Should i start just learning luau then move onto the roblox api or should i learn the API and luau together?
Thanks.
https://redd.it/1m8pwre
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
My hyper-minimal command line parser
Sometimes you want to write a noscript that takes command-line arguments, but you don't want to install Luarocks or any dependencies. Here's my 23-line function that makes this just a little bit nicer.
local function cmdMap(cmdArgs)
cmdArgs = cmdArgs or _G.arg
local result, map = {}, {}
for idx, text in ipairs(cmdArgs) do
if text:find("=") then
local name, value = text:match("([^=]+)=(.+)")
value = value:match("[%s'\"]*([^'\"]*)") or value
map[name] = {idx = idx, value = value}
else
map[text] = {idx = idx, value = cmdArgs[idx + 1]}
end
end
function result.empty()
return cmdArgs[1] == nil
end
function result.find(arg, argAlt)
return map[arg] or map[argAlt or -1]
end
function result.value(arg, argAlt)
return (result.find(arg, argAlt) or {}).value
end
return result
end
-- This is how you might use it in a noscript:
local args = cmdMap(arg)
if args.find("--help", "-h") or args.empty() then
print("Write some help here")
os.exit(0)
end
local flag = args.find("--some-flag", "-f")
local setting = args.value("--some-setting", "-s")
print("The flag is: ", flag and true or false, "The setting is: ", setting)
This will handle arguments of boths forms: `--setting x`, `--setting=x`.
https://redd.it/1m8w3e2
@r_lua
Sometimes you want to write a noscript that takes command-line arguments, but you don't want to install Luarocks or any dependencies. Here's my 23-line function that makes this just a little bit nicer.
local function cmdMap(cmdArgs)
cmdArgs = cmdArgs or _G.arg
local result, map = {}, {}
for idx, text in ipairs(cmdArgs) do
if text:find("=") then
local name, value = text:match("([^=]+)=(.+)")
value = value:match("[%s'\"]*([^'\"]*)") or value
map[name] = {idx = idx, value = value}
else
map[text] = {idx = idx, value = cmdArgs[idx + 1]}
end
end
function result.empty()
return cmdArgs[1] == nil
end
function result.find(arg, argAlt)
return map[arg] or map[argAlt or -1]
end
function result.value(arg, argAlt)
return (result.find(arg, argAlt) or {}).value
end
return result
end
-- This is how you might use it in a noscript:
local args = cmdMap(arg)
if args.find("--help", "-h") or args.empty() then
print("Write some help here")
os.exit(0)
end
local flag = args.find("--some-flag", "-f")
local setting = args.value("--some-setting", "-s")
print("The flag is: ", flag and true or false, "The setting is: ", setting)
This will handle arguments of boths forms: `--setting x`, `--setting=x`.
https://redd.it/1m8w3e2
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Is coding Lua noscripts still a good way to make money in 2025?
Hey! I’m a 20 yo computer science student, and I’m looking to add a source of income directly from my computer. I’ve explored a few options already, and Lua noscripting caught my attention, especially because it seems both useful and potentially sellable.
I’ve started learning Lua mainly for FiveM server development, but I know it’s also used in other gaming/modding contexts. Right now, I’m trying to look at all the possibilities before going all in.
This isn’t just a random burst of motivation, I’m ready to put in the work and stay consistent. My goal is simple: use the skills I’m learning as a student (like coding and self-learning) to earn a little extra money from home.
👉 So my questions are:
• Is Lua noscripting still a profitable skill in 2025?
• Are there better alternatives for someone like me (CS student, good at learning, comfortable with code) to make money online?
• If Lua is a good entry point, where should I focus my efforts (FiveM, Roblox, other niches)?
Thanks in advance for any tips, ideas, or experience sharing!
https://redd.it/1m8wzoc
@r_lua
Hey! I’m a 20 yo computer science student, and I’m looking to add a source of income directly from my computer. I’ve explored a few options already, and Lua noscripting caught my attention, especially because it seems both useful and potentially sellable.
I’ve started learning Lua mainly for FiveM server development, but I know it’s also used in other gaming/modding contexts. Right now, I’m trying to look at all the possibilities before going all in.
This isn’t just a random burst of motivation, I’m ready to put in the work and stay consistent. My goal is simple: use the skills I’m learning as a student (like coding and self-learning) to earn a little extra money from home.
👉 So my questions are:
• Is Lua noscripting still a profitable skill in 2025?
• Are there better alternatives for someone like me (CS student, good at learning, comfortable with code) to make money online?
• If Lua is a good entry point, where should I focus my efforts (FiveM, Roblox, other niches)?
Thanks in advance for any tips, ideas, or experience sharing!
https://redd.it/1m8wzoc
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community