For a beginner how long would it take to learn the basics of Lua?
im just wondering how long its gonna take me to learn the basics of Lua as a newbie. Thanks!
https://redd.it/1llyiop
@r_lua
im just wondering how long its gonna take me to learn the basics of Lua as a newbie. Thanks!
https://redd.it/1llyiop
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
LuaDroid: why is some of the noscript not displaying in the output?
BACKGROUND ON THE OP:
I am quite new to lua. I've only been learning for a few days and I can grasp the basic principles of it. I have prior knowledge about coding and basic ideas as I'd learned most of python a few years back (I have forgotten nesrly all of what I had learned though).
I've been using roblox studio to learn when I'm at home but when travelling, I use LuaDroid. It is quite useful and, while I obviously can't practice stuff that need a 3d world and things that roblox studio has and LuaDroid doesn't, I can still practice if statements, maths, for and while loops, etc.
So anyways this is the issue: the noscript after line 61 (apart from comments because they don't appear anyway) just won't show up in the output. I've made a few functions after line 61 and then called them for use later but they aren't displayed in the output. I just don't understand why so someone please help me!
I'll paste my coding and what shows up in the output below. Also please tell me if I need to include more information about this because I don't know how much information you'd need to be able to tell me what I've done wrong.
Here's all of my coding (don't mind some of my word choices... hehe):
print("what the john is this")
-- thats the only thing i know how to do
-- how do i access lessons help
-- im cooked
print("im cooked")
print("heheheharr")
print("imma watch a tutorial 1 sec")
-- WRITTEN ON: idk the day i got this app-----
local function addOneLol(addOneTo)
resultA = addOneTo + 1
print(addOneTo, "add one equals", resultA)
return resultA
end
addOneLol(6)
addOneLol(100)
local function timesFive(multiplyMe)
resultM = multiplyMe 5
print(multiplyMe, "times five equals", resultM)
return resultM
end
timesFive(210)
timesFive(0.2525)
if timesFive(200) == 1000 then
print("guys 200 times 5 is 1000 no way")
else
print("news flash: my life is a lie")
end
local sigma = 0
for skibidi = 1, 10, 1 do
sigma = sigma + 1
print(sigma)
if sigma >= 5 then
print("yay")
end
end
local function countToFive()
for chad = 1, 1 do
print("1")
print("2")
print("3")
print("4")
print("5!")
end
end
local rizz = 1
while rizz < 6 do
print("this should be displayed 5 times")
rizz = rizz + 1
return rizz
end
-- uhh everything past this line doesnt work T-T
-- im actually gonna crashout holy moly rawrrrrr
countToFive()
local function xTIMESy(x, y)
resultT = x y
print(resultT)
return resultT
end
xTIMESy(9, 12)
-- WRITTEN ON: MONDAY 23RD JUNE 2025-----
trueORfalse = true
local fuction fiftyfifty()
if trueORfalse then
print("its true")
for i = 1, 10, 1 do
print("yay")
end
end
fiftyfifty()
-- WRITTEN ON: TUESDAY 24TH JUNE 2025-----
Here's what shows up in the output:
what the john is this im cooked
heheheharr
imma watch a tutorial 1 sec
6 add one equals 7
100 add one equals 101
210 times five equals 1050
0.2525 times five equals 1.2625
200 times five equals 1000
guys 200 times 5 is 1000 no way
1
2
3
4
5
yay
6
yay
7
yay
8
yay
9
yay
10
yay
this should be displayed 5 times
https://redd.it/1lm49e2
@r_lua
BACKGROUND ON THE OP:
I am quite new to lua. I've only been learning for a few days and I can grasp the basic principles of it. I have prior knowledge about coding and basic ideas as I'd learned most of python a few years back (I have forgotten nesrly all of what I had learned though).
I've been using roblox studio to learn when I'm at home but when travelling, I use LuaDroid. It is quite useful and, while I obviously can't practice stuff that need a 3d world and things that roblox studio has and LuaDroid doesn't, I can still practice if statements, maths, for and while loops, etc.
So anyways this is the issue: the noscript after line 61 (apart from comments because they don't appear anyway) just won't show up in the output. I've made a few functions after line 61 and then called them for use later but they aren't displayed in the output. I just don't understand why so someone please help me!
I'll paste my coding and what shows up in the output below. Also please tell me if I need to include more information about this because I don't know how much information you'd need to be able to tell me what I've done wrong.
Here's all of my coding (don't mind some of my word choices... hehe):
print("what the john is this")
-- thats the only thing i know how to do
-- how do i access lessons help
-- im cooked
print("im cooked")
print("heheheharr")
print("imma watch a tutorial 1 sec")
-- WRITTEN ON: idk the day i got this app-----
local function addOneLol(addOneTo)
resultA = addOneTo + 1
print(addOneTo, "add one equals", resultA)
return resultA
end
addOneLol(6)
addOneLol(100)
local function timesFive(multiplyMe)
resultM = multiplyMe 5
print(multiplyMe, "times five equals", resultM)
return resultM
end
timesFive(210)
timesFive(0.2525)
if timesFive(200) == 1000 then
print("guys 200 times 5 is 1000 no way")
else
print("news flash: my life is a lie")
end
local sigma = 0
for skibidi = 1, 10, 1 do
sigma = sigma + 1
print(sigma)
if sigma >= 5 then
print("yay")
end
end
local function countToFive()
for chad = 1, 1 do
print("1")
print("2")
print("3")
print("4")
print("5!")
end
end
local rizz = 1
while rizz < 6 do
print("this should be displayed 5 times")
rizz = rizz + 1
return rizz
end
-- uhh everything past this line doesnt work T-T
-- im actually gonna crashout holy moly rawrrrrr
countToFive()
local function xTIMESy(x, y)
resultT = x y
print(resultT)
return resultT
end
xTIMESy(9, 12)
-- WRITTEN ON: MONDAY 23RD JUNE 2025-----
trueORfalse = true
local fuction fiftyfifty()
if trueORfalse then
print("its true")
for i = 1, 10, 1 do
print("yay")
end
end
fiftyfifty()
-- WRITTEN ON: TUESDAY 24TH JUNE 2025-----
Here's what shows up in the output:
what the john is this im cooked
heheheharr
imma watch a tutorial 1 sec
6 add one equals 7
100 add one equals 101
210 times five equals 1050
0.2525 times five equals 1.2625
200 times five equals 1000
guys 200 times 5 is 1000 no way
1
2
3
4
5
yay
6
yay
7
yay
8
yay
9
yay
10
yay
this should be displayed 5 times
https://redd.it/1lm49e2
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Recruitment Application
Greetings,
I am assembling a dedicated Roblox development team comprising 3 Developers and 3 Designers.
If you are passionate about creating high quality projects and possess strong skills in your field, I invite you to join us.
Regarding payment: Once the game is completed, all profits and interests will be fairly split among the team members.
Please send me an email on : david.business069@gmail.com to express your interest or request more information.
Looking forward to collaborating with talented individuals.
Best regards
https://redd.it/1lmauyp
@r_lua
Greetings,
I am assembling a dedicated Roblox development team comprising 3 Developers and 3 Designers.
If you are passionate about creating high quality projects and possess strong skills in your field, I invite you to join us.
Regarding payment: Once the game is completed, all profits and interests will be fairly split among the team members.
Please send me an email on : david.business069@gmail.com to express your interest or request more information.
Looking forward to collaborating with talented individuals.
Best regards
https://redd.it/1lmauyp
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Lua on microcontrollers. Surprised how far it’s come
Been mostly using lue for small noscripting stuff over the years, config files, quick automation etc. Always loved how clean it feels but never thought of it as a serious option for embedded devices.
Recently tried out a setup where you run lua code directly on an esp32 and it honestly blew me away. Like full noscripting, GPIO access, MQTT, TLS, even OTA updates and all of it handled from a browser based IDE. Didn’t expect that level of capability from such a tiny chip running Lua.
Curious if anyone else here is experimenting with Lua on constrained devices? I know NodeMCU is a thing, but this felt a bit more full featured.
https://redd.it/1lnn2q9
@r_lua
Been mostly using lue for small noscripting stuff over the years, config files, quick automation etc. Always loved how clean it feels but never thought of it as a serious option for embedded devices.
Recently tried out a setup where you run lua code directly on an esp32 and it honestly blew me away. Like full noscripting, GPIO access, MQTT, TLS, even OTA updates and all of it handled from a browser based IDE. Didn’t expect that level of capability from such a tiny chip running Lua.
Curious if anyone else here is experimenting with Lua on constrained devices? I know NodeMCU is a thing, but this felt a bit more full featured.
https://redd.it/1lnn2q9
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
New to Lua, Code won't Print, Help (Visual Studio Code)
https://preview.redd.it/g1i90ylu90af1.png?width=1920&format=png&auto=webp&s=731fa3a147994ad3b8f4fd615dfb7e305292afc0
So I'm still new to Lua, And I'm using VSCode to do my Lua Coding, I'm just wondering why my Lua Code refuses to print in the Output Console, Can someone answer me that?
https://redd.it/1lo04s5
@r_lua
https://preview.redd.it/g1i90ylu90af1.png?width=1920&format=png&auto=webp&s=731fa3a147994ad3b8f4fd615dfb7e305292afc0
So I'm still new to Lua, And I'm using VSCode to do my Lua Coding, I'm just wondering why my Lua Code refuses to print in the Output Console, Can someone answer me that?
https://redd.it/1lo04s5
@r_lua
The Complete Defold Course Bundle (pay what you want and help charity)
https://www.humblebundle.com/software/complete-defold-course-bundle-software
https://redd.it/1lomiif
@r_lua
https://www.humblebundle.com/software/complete-defold-course-bundle-software
https://redd.it/1lomiif
@r_lua
Humble Bundle
The Complete Defold Course Bundle
Pay what you want to create your own original console, desktop, mobile, and web games using Defold—one of the most powerful and free dev engines around!
realistically, how much faster is binding globals to a local? is it even noticeable?
https://redd.it/1lpad4q
@r_lua
https://redd.it/1lpad4q
@r_lua
Putting my WebSocket into a Thread
## THIS IS A REPOST
Hi. I have been using https://github.com/flaribbit/love2d-lua-websocket/releases to create a simple websocket system for my Balatro mod. It all worked until some time ago. Only me on my laptop specifically and on the pc of a friend the game lags with 0fps. I have been able to pinpoint it to the löve2d socket library, specifically connect. I've learned that it's reccommended to put the socket in a Thread to avoid blocking operations stopping the game thread. I have never used threads in löve nor lua ever so I wanted to ask what would be the best way to rewrite my socket into using a thread without needing much of a refactor, since my code in this version is still spaghetti 🍝
https://redd.it/1lqv0mx
@r_lua
## THIS IS A REPOST
Hi. I have been using https://github.com/flaribbit/love2d-lua-websocket/releases to create a simple websocket system for my Balatro mod. It all worked until some time ago. Only me on my laptop specifically and on the pc of a friend the game lags with 0fps. I have been able to pinpoint it to the löve2d socket library, specifically connect. I've learned that it's reccommended to put the socket in a Thread to avoid blocking operations stopping the game thread. I have never used threads in löve nor lua ever so I wanted to ask what would be the best way to rewrite my socket into using a thread without needing much of a refactor, since my code in this version is still spaghetti 🍝
https://redd.it/1lqv0mx
@r_lua
Reddit
From the love2d community on Reddit: Putting my WebSocket into a Thread
Explore this post and more from the love2d community
How to list Windows pipes in Lua? (mpv)
Hi all,
I am trying to wait until a detached child process has created a named pipe, so that I don't send a command before the named pipe has been created (therefore making the command not take effect).
For this reason I am trying to list all the named pipes.
If I do
However, if I do the following in Lua (in an mpv noscript), I get nothing out:
What's the best way to achieve what I'm trying to do?
Thanks
https://redd.it/1ls26yj
@r_lua
Hi all,
I am trying to wait until a detached child process has created a named pipe, so that I don't send a command before the named pipe has been created (therefore making the command not take effect).
For this reason I am trying to list all the named pipes.
If I do
dir -n \\.\pipe in the terminal (PowerShell), I get a list of all named pipes.However, if I do the following in Lua (in an mpv noscript), I get nothing out:
for dir in io.popen([[dir -n "\\.\pipe"]]):lines() do print(dir) endWhat's the best way to achieve what I'm trying to do?
Thanks
https://redd.it/1ls26yj
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Lua help
I'm trying to download lua on win 10 but its only a cz file and I cant use it. Any help on this?
https://redd.it/1ls54ev
@r_lua
I'm trying to download lua on win 10 but its only a cz file and I cant use it. Any help on this?
https://redd.it/1ls54ev
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Game engine
Hey! Im pretty new to lua coding from scratch (im coding balatro mods for 6-7 month, but want to make my own thing now) and i was looking for a game engine, something like godot but for lua, and i couldnt find any so far
https://redd.it/1lsq0ai
@r_lua
Hey! Im pretty new to lua coding from scratch (im coding balatro mods for 6-7 month, but want to make my own thing now) and i was looking for a game engine, something like godot but for lua, and i couldnt find any so far
https://redd.it/1lsq0ai
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Getting Started with GTA V/FiveM Vehicle Mod Creation - Need Advice & Tutorials!
I’m running a FiveM server and want to dive into creating custom vehicle mods for GTA V/FiveM. I’m a beginner in this area and eager to learn the ropes. I’d love to hear from experienced modders about their process and any tips or basic tutorials you can share to help me get started. Specifically, I have a few questions:
1. Programming Languages: What programming or markup languages are commonly used for vehicle modding in GTA V/FiveM?
2. Essential Skills: What key skills or knowledge should I focus on to successfully create vehicle mods?
3. 3D Modeling Software: What are the best 3D modeling programs for creating or editing vehicle models?
Any personal experiences, beginner-friendly tutorials, or resources you can point me to would be greatly appreciated. Excited to join the modding community and start building some cool vehicles!
Thanks,
https://redd.it/1lvd58a
@r_lua
I’m running a FiveM server and want to dive into creating custom vehicle mods for GTA V/FiveM. I’m a beginner in this area and eager to learn the ropes. I’d love to hear from experienced modders about their process and any tips or basic tutorials you can share to help me get started. Specifically, I have a few questions:
1. Programming Languages: What programming or markup languages are commonly used for vehicle modding in GTA V/FiveM?
2. Essential Skills: What key skills or knowledge should I focus on to successfully create vehicle mods?
3. 3D Modeling Software: What are the best 3D modeling programs for creating or editing vehicle models?
Any personal experiences, beginner-friendly tutorials, or resources you can point me to would be greatly appreciated. Excited to join the modding community and start building some cool vehicles!
Thanks,
https://redd.it/1lvd58a
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
XLua vs Lua cysharp for game config files.
Can't understand what's the difference between XLua and Lua-CSharp. Which one will be more performant and gc-efficient for use in Unity? Specifically, I want to implement game configs with Lua. No complex logic, mostly numbers, strings, and some math. Something like Json on steroids.
I'm also wondering about performance: should I parse all the data from Lua into C# objects at application startup, or can I use objects directly from Lua noscripts in runtime? Accordingly, in the first option, it is better to use mostly static data and minimal logic in Lua?
https://redd.it/1lvf6gr
@r_lua
Can't understand what's the difference between XLua and Lua-CSharp. Which one will be more performant and gc-efficient for use in Unity? Specifically, I want to implement game configs with Lua. No complex logic, mostly numbers, strings, and some math. Something like Json on steroids.
I'm also wondering about performance: should I parse all the data from Lua into C# objects at application startup, or can I use objects directly from Lua noscripts in runtime? Accordingly, in the first option, it is better to use mostly static data and minimal logic in Lua?
https://redd.it/1lvf6gr
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Caelum Framework - A new structured way of writing lua
Hi, today i wanted to share with you a framework that i built in these weeks in lua: Caelum-lua. This framework was created with the objective to have a way to write lua noscripts that was easy to understand, even for programmers like me that have never coded in lua, and to make them easy to integrate in engines or other types of applications .
In fact the framework originated from a need of having a noscripting language for my future application that was fast, easy to use and to embed in my application, and that would give me a way of showing informations from the noscripts in the application editor.
This made me go for lua, but it lacked of a consistent information about types of the values created and used in the noscript, so it was difficult for me to show them in an easy and consistent form in the ui.
After weeks of developing, searching, and asking ai questions about the best tips and tricks for writing lua, it was born, the Caelum Library.
On this day the library has reached a semi-functional and ready-to-use state, so I wanted to share it with you, so that more people can give me opinions, critics, ways of improving it and also general advices on the lua programming language that I am learning to love.
This is the link to the github repo: here
This is the link to the luarocks page: here
Let me know you thoughts and opinions on these and thanks for your attention.
https://redd.it/1lvtg4c
@r_lua
Hi, today i wanted to share with you a framework that i built in these weeks in lua: Caelum-lua. This framework was created with the objective to have a way to write lua noscripts that was easy to understand, even for programmers like me that have never coded in lua, and to make them easy to integrate in engines or other types of applications .
In fact the framework originated from a need of having a noscripting language for my future application that was fast, easy to use and to embed in my application, and that would give me a way of showing informations from the noscripts in the application editor.
This made me go for lua, but it lacked of a consistent information about types of the values created and used in the noscript, so it was difficult for me to show them in an easy and consistent form in the ui.
After weeks of developing, searching, and asking ai questions about the best tips and tricks for writing lua, it was born, the Caelum Library.
On this day the library has reached a semi-functional and ready-to-use state, so I wanted to share it with you, so that more people can give me opinions, critics, ways of improving it and also general advices on the lua programming language that I am learning to love.
This is the link to the github repo: here
This is the link to the luarocks page: here
Let me know you thoughts and opinions on these and thanks for your attention.
https://redd.it/1lvtg4c
@r_lua
GitHub
GitHub - zLouis043/Caelum-lua: Caelum adds Classes, Structs, Enums, Complex-Data-Structures, validators, type-checking system,…
Caelum adds Classes, Structs, Enums, Complex-Data-Structures, validators, type-checking system, and a easy to use reflection system - zLouis043/Caelum-lua
Who compiles this code for me and publishes it on Drive PLS
The code is:
-- Funciones para establecer colores
local function setColor(color)
local colors = {
reset = "\27[0m",
red = "\27[31m",
green = "\27[32m",
yellow = "\27[33m",
blue = "\27[34m",
magenta = "\27[35m",
cyan = "\27[36m",
white = "\27[37m",
idiot = "\27[1m",
}
return colors[color] or colors.reset
end
local function openFile(filename)
local file = io.open(filename, "r")
if file then
print(setColor("green") .. "Contenido_de_" .. filename .. ":" .. setColor("reset"))
print(file:read("*all"))
file:close()
else
print(setColor("red") .. "No se pudo abrir el archivo: " .. filename .. setColor("reset"))
end
end
local function createFile(filename)
local file = io.open(filename, "w")
if file then
print(setColor("blue") .. "Archivo " .. filename .. " creado. Escribe el contenido del archivo (escribe 'exit' para guardar y salir):" .. setColor("reset"))
while true do
local line = io.read()
if line == "exit" then break end
file:write(line .. "\n")
end
file:close()
print(setColor("green") .. "Archivo " .. filename .. " guardado." .. setColor("reset"))
else
print(setColor("red") .. "No se pudo crear el archivo: " .. filename .. setColor("reset"))
end
end
local function editFile(filename)
local file = io.open(filename, "abriendo") -- Abrir el archivo en modo de añadir
if file then
print(setColor("blue") .. "Editando " .. filename .. ". Escribe el contenido adicional (escribe 'exit' para guardar y salir):" .. setColor("reset"))
while true do
local line = io.read()
if line == "exit" then break end
file:write(line .. "\n")
end
file:close()
print(setColor("green") .. "Archivo " .. filename .. " actualizado." .. setColor("reset"))
else
print(setColor("red") .. "No se pudo abrir el archivo para editar: " .. filename .. setColor("reset"))
end
end
local function expodisk()
-- Esta función intentará abrir el explorador de archivos en la unidad de CD-ROM
os.execute("explorer.exe D:\\") -- Cambia D:\\ por la letra de tu unidad de CD-ROM
end
local function apexe(exeName)
local result = os.execute('start "" "' .. exeName .. '"')
if result then
print(setColor("green") .. "executing " .. exeName .. "..." .. setColor("reset"))
else
print(setColor("red") .. "error " .. exeName .. setColor("reset"))
end
end
local function commandPrompt()
while true do
io.write(setColor("yellow") .. "C25> " .. setColor("reset"))
local input = io.read()
local command, arg = input:match("^(%S+)%s*(.*)$")
if command == "open" then
openFile(arg)
elseif command == "create" then
createFile(arg)
elseif command == "edit" then
editFile(arg)
elseif command == "expodisk" then
expodisk()
elseif command == "apexe" then
apexe(arg)
elseif command == "exit" then
print(setColor("green") .. "exit." .. setColor("reset"))
break
elseif command == "gay" then
print(setColor("magenta") .. "Anulo Mufa." .. setColor("reset"))
break
elseif command == "hi" then
print(setColor("idiot") .. "hi bro" .. setColor("reset"))
elseif command == "whatisthecolorwhite" then
print(setColor("idiot") .. "the code of this color is idiot" .. setColor("reset"))
elseif command == "open_code" then
print(setColor("idiot") .. "open ExpoOS.lua" .. setColor("reset"))
elseif command == "bitch" then
print(setColor("magenta") .. "Bitch" .. setColor("reset"))
break
elseif command == "idiot" then
print(setColor("idiot") .. "Nazi" .. setColor("reset"))
The code is:
-- Funciones para establecer colores
local function setColor(color)
local colors = {
reset = "\27[0m",
red = "\27[31m",
green = "\27[32m",
yellow = "\27[33m",
blue = "\27[34m",
magenta = "\27[35m",
cyan = "\27[36m",
white = "\27[37m",
idiot = "\27[1m",
}
return colors[color] or colors.reset
end
local function openFile(filename)
local file = io.open(filename, "r")
if file then
print(setColor("green") .. "Contenido_de_" .. filename .. ":" .. setColor("reset"))
print(file:read("*all"))
file:close()
else
print(setColor("red") .. "No se pudo abrir el archivo: " .. filename .. setColor("reset"))
end
end
local function createFile(filename)
local file = io.open(filename, "w")
if file then
print(setColor("blue") .. "Archivo " .. filename .. " creado. Escribe el contenido del archivo (escribe 'exit' para guardar y salir):" .. setColor("reset"))
while true do
local line = io.read()
if line == "exit" then break end
file:write(line .. "\n")
end
file:close()
print(setColor("green") .. "Archivo " .. filename .. " guardado." .. setColor("reset"))
else
print(setColor("red") .. "No se pudo crear el archivo: " .. filename .. setColor("reset"))
end
end
local function editFile(filename)
local file = io.open(filename, "abriendo") -- Abrir el archivo en modo de añadir
if file then
print(setColor("blue") .. "Editando " .. filename .. ". Escribe el contenido adicional (escribe 'exit' para guardar y salir):" .. setColor("reset"))
while true do
local line = io.read()
if line == "exit" then break end
file:write(line .. "\n")
end
file:close()
print(setColor("green") .. "Archivo " .. filename .. " actualizado." .. setColor("reset"))
else
print(setColor("red") .. "No se pudo abrir el archivo para editar: " .. filename .. setColor("reset"))
end
end
local function expodisk()
-- Esta función intentará abrir el explorador de archivos en la unidad de CD-ROM
os.execute("explorer.exe D:\\") -- Cambia D:\\ por la letra de tu unidad de CD-ROM
end
local function apexe(exeName)
local result = os.execute('start "" "' .. exeName .. '"')
if result then
print(setColor("green") .. "executing " .. exeName .. "..." .. setColor("reset"))
else
print(setColor("red") .. "error " .. exeName .. setColor("reset"))
end
end
local function commandPrompt()
while true do
io.write(setColor("yellow") .. "C25> " .. setColor("reset"))
local input = io.read()
local command, arg = input:match("^(%S+)%s*(.*)$")
if command == "open" then
openFile(arg)
elseif command == "create" then
createFile(arg)
elseif command == "edit" then
editFile(arg)
elseif command == "expodisk" then
expodisk()
elseif command == "apexe" then
apexe(arg)
elseif command == "exit" then
print(setColor("green") .. "exit." .. setColor("reset"))
break
elseif command == "gay" then
print(setColor("magenta") .. "Anulo Mufa." .. setColor("reset"))
break
elseif command == "hi" then
print(setColor("idiot") .. "hi bro" .. setColor("reset"))
elseif command == "whatisthecolorwhite" then
print(setColor("idiot") .. "the code of this color is idiot" .. setColor("reset"))
elseif command == "open_code" then
print(setColor("idiot") .. "open ExpoOS.lua" .. setColor("reset"))
elseif command == "bitch" then
print(setColor("magenta") .. "Bitch" .. setColor("reset"))
break
elseif command == "idiot" then
print(setColor("idiot") .. "Nazi" .. setColor("reset"))
break
elseif command == "black_men" then
print(setColor("magenta") .. "i'm not a men" .. setColor("reset"))
break
elseif command == "black_girl" then
print(setColor("magenta") .. "i'm not a girl" .. setColor("reset"))
break
elseif command == "black_ai" then
print(setColor("magenta") .. "..." .. setColor("reset"))
break
elseif command == "friends" then
print(setColor("idiot") .. "forever" .. setColor("reset"))
break
else
print(setColor("red") .. "Comando no reconocido: " .. command .. setColor("reset"))
end
end
end
commandPrompt().
https://redd.it/1lwhq7l
@r_lua
elseif command == "black_men" then
print(setColor("magenta") .. "i'm not a men" .. setColor("reset"))
break
elseif command == "black_girl" then
print(setColor("magenta") .. "i'm not a girl" .. setColor("reset"))
break
elseif command == "black_ai" then
print(setColor("magenta") .. "..." .. setColor("reset"))
break
elseif command == "friends" then
print(setColor("idiot") .. "forever" .. setColor("reset"))
break
else
print(setColor("red") .. "Comando no reconocido: " .. command .. setColor("reset"))
end
end
end
commandPrompt().
https://redd.it/1lwhq7l
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
pls help with list and for loop (imapfilter)
Hi everybody,
I am trying to clean up my `imapfilter` lua config. Total beginner, this is how far I got, but I cannot solve the final issue. Can you please help me?
results = {}
my_accounts = {
"one",
"two"
}
my_contain_body = { "Werbung" }
my_contain_subject = { "Wichtig" }
my_contain_from = {
"contact@bigdatacloud.com",
"Temu",
"Discord"
}
for each in pairs(my_accounts) do
-- FROM
for value in pairs(my_contain_from) do
table.insert(results, string.format("%s.INBOX:contain_from('%s')", my_accounts[each], my_contain_from[value]))
end
-- BODY
for value in pairs(my_contain_body) do
table.insert(results, string.format("%s.INBOX:contain_body('%s')", my_accounts[each], my_contain_body[value]))
end
-- SUBJECT
for value in pairs(my_contain_subject) do
table.insert(results,
string.format("%s.INBOX:contain_subject('%s')", my_accounts[each], my_contain_subject[value]))
end
end
I am able to run
for each in pairs(results) do
print(results[each])
end
in my test file and receive lines such as `one.INBOX:contain_from('Temu')`.
The last line in my `config.lua` is this
results:delete_messages()
When I run `imapfilter`, I get this
imapfilter: /home/me/.imapfilter/config.lua:210: attempt to call a nil value (method 'delete_messages')
stack traceback:
[C]: in method 'delete_messages'
/home/me/.imapfilter/config.lua:210: in main chunk
Can you please tell me what I am doing wrong? I was hoping I could automate creating the list instead of having it like this (current configuration)
results = (
one.INBOX:contain_from("Temu") +
two.INBOX:contain_body("Temu") +
one.INBOX:contain_from("Discord") +
two.INBOX:contain_body("Discord") +
-- (...)
)
The results list seems to include anything and everything I want (I can print all the expected values), but the `delete_messages` function does not work.
Thank you in advance for your help :)
https://redd.it/1lx1ejx
@r_lua
Hi everybody,
I am trying to clean up my `imapfilter` lua config. Total beginner, this is how far I got, but I cannot solve the final issue. Can you please help me?
results = {}
my_accounts = {
"one",
"two"
}
my_contain_body = { "Werbung" }
my_contain_subject = { "Wichtig" }
my_contain_from = {
"contact@bigdatacloud.com",
"Temu",
"Discord"
}
for each in pairs(my_accounts) do
-- FROM
for value in pairs(my_contain_from) do
table.insert(results, string.format("%s.INBOX:contain_from('%s')", my_accounts[each], my_contain_from[value]))
end
-- BODY
for value in pairs(my_contain_body) do
table.insert(results, string.format("%s.INBOX:contain_body('%s')", my_accounts[each], my_contain_body[value]))
end
-- SUBJECT
for value in pairs(my_contain_subject) do
table.insert(results,
string.format("%s.INBOX:contain_subject('%s')", my_accounts[each], my_contain_subject[value]))
end
end
I am able to run
for each in pairs(results) do
print(results[each])
end
in my test file and receive lines such as `one.INBOX:contain_from('Temu')`.
The last line in my `config.lua` is this
results:delete_messages()
When I run `imapfilter`, I get this
imapfilter: /home/me/.imapfilter/config.lua:210: attempt to call a nil value (method 'delete_messages')
stack traceback:
[C]: in method 'delete_messages'
/home/me/.imapfilter/config.lua:210: in main chunk
Can you please tell me what I am doing wrong? I was hoping I could automate creating the list instead of having it like this (current configuration)
results = (
one.INBOX:contain_from("Temu") +
two.INBOX:contain_body("Temu") +
one.INBOX:contain_from("Discord") +
two.INBOX:contain_body("Discord") +
-- (...)
)
The results list seems to include anything and everything I want (I can print all the expected values), but the `delete_messages` function does not work.
Thank you in advance for your help :)
https://redd.it/1lx1ejx
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Help with Lua noscript edititing.
https://preview.redd.it/yc2p479zl8cf1.png?width=509&format=png&auto=webp&s=2bfeeb66a8a226fd1d3e576b652940fcb9b8b224
How can I change this to the equal sign (=). I tried just changing the "capslock" to "equal" "equals" and also tried "=" but nothing seemed to work...
https://redd.it/1lx5dtr
@r_lua
https://preview.redd.it/yc2p479zl8cf1.png?width=509&format=png&auto=webp&s=2bfeeb66a8a226fd1d3e576b652940fcb9b8b224
How can I change this to the equal sign (=). I tried just changing the "capslock" to "equal" "equals" and also tried "=" but nothing seemed to work...
https://redd.it/1lx5dtr
@r_lua
guys, please help me. I'm a beginner developer on "Lua" and I don't know where to start. I will be glad to see your every comment.
https://redd.it/1lxcamg
@r_lua
https://redd.it/1lxcamg
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community