Category "lua"

Redis INCRBY with limits

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

Writen .lua to normal .lua [closed]

This is in FiveM and I dont know how to write this to 'normal' lua. This is the code: if LumiaM.Mfunc.Button('Give

Can't install http module with luarocks on Ubuntu

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 to fuse array in Lua

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

LUA in software testing (automation tests) [closed]

Does someone know to to attach Lua scripts in Jmeter or Junit?! Can someone recommend some tutorials or books with Lua software testing?! What

OpenResty / Lua - Maintain mysql database connection in worker threads

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

Remove pair duplicates from array of values

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

Roblox changes font randomly

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

Calling a lua function at random time intervals in love2d

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 getting an error: "attempt to compare nil with number" in Lua with LOVE2d

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

Need help on creating a UDF, returning "Unable to create a new Lua state"

I need to ask a question on creating UDF on aerospike. My configuration is as below: M1 Macbook Pro Docker using latest aerospike My application is running this

Background colour in LÖVE

I've set up a config file and I just got started writing a program to set up the title screen for a text-based RPG/simulation game. The background colour doesn'