I have a problem with my minecraft timer script I tried to add a function that saves the time values from worlds in a document. The timer worked completly fine
How to filter a Lua array inplace? For example, having an array of { 1, 5, 7 } and a function function(elem) return elem > 1 end, the inplace filtering func
I am trying to write a function that finds the first .waste dir in one of the parent dirs (e.g. .. ../.. ../../..). For this I need to see if the dir exists. F
Is there a way to choose the result(s) I want from a function that returns multiple results . E.g. local function FormatSeconds(secondsArg) local weeks = m
So this is the error I have been getting: Game.lua:66: attempt to index global 'Spears' (a nil value) stack traceback: Game.lua:66: in
I want to make a command that would kill a player you specify.. Let's say I type: kill/Paul. Now I want to kill the player with the name Paul. This is my comman
I have a book that I am moving from the Bookdown toolchain to Quarto. Very simply, both tools generate a book from flavoured markdown using Pandoc. Pandoc allow
The default lua_pcall error handler (as of Lua 5.3) does nothing, letting the exception message remain on top of the stack. We would like to change this so we g
I am going to send a byte array through socket.But I used to work in c/c++ and be new to lua. Now i have a problem,here is my question. i want to send a bytear
I am trying to run a lua script which eventually returns a lua table, then convert it as java Map with Spring Data Redis. When the result is array style lua tab
I'd like to know if there is a way to perform this in redis with a single roundtrip from my app: For a given key K, its possible value V is any of the integers
This is in FiveM and I dont know how to write this to 'normal' lua. This is the code: if LumiaM.Mfunc.Button('Give
HTTP module installation is failing on Ubuntu with following error: root@someserver:/var/log# luarocks install http Warning: falling back to wget - install luas
how can I fuse two array into one to be like: local array1 = {2272, 2271, 2270, 2269} local array2 = {2267, 2266, 2268, 2265, 2264, 2263, 2262, 2261} local fus
Does someone know to to attach Lua scripts in Jmeter or Junit?! Can someone recommend some tutorials or books with Lua software testing?! What
I have a simple module called "firewall.lua" that I wrote that has a function firewall.check_ip(ip) which connects to localhost mysql and performs a query and r
The problem In lua I have an array of values (specifically - x and y position values) from which I would like to remove duplicate pairs. The array looks as fol
I accidentally started typing and triggered a switch in Roblox fonts. I know it's a keybind. But I forgot what I had pressed. I was trying to use _G for a globa
So basically I want to call a function in lua at random time intervals in love2d. Iam clueless of how to do this so any help is appreciated.
I'm trying to make my first game with lua & love, it's a simple button clicker game that counts how many times you click a randomly appearing button. I'm tr