Category "lua"

How can I make scrolling text?

I am currently trying to make scrolling text. I’m using Lua 5.2. The basic idea is: I have a variable with a long string of text in it I want to make a fu

conky using a function call within an if statement

How do I call a function after loading it in conkyrc? For example: I'm trying to get the active interface name which is returning properly ${lua conky_findInte

FNF Psych Engine Slow Down (Friday Night Funkin') lime test windows

(Sorry if there is typo I type this in a hurry) EDIT: The problem is gone for me but I have no idea why. I rebooted my pc many times and fail for days but some

Add body to luasocket POST request with generic form?

From https://w3.impa.br/~diego/software/luasocket/http.html, there are two ways to make a request, simple and generic. I have gotten the body to work with the s

percentage calculation with negative integers LUA [ANWSERED]

problem: -4% = 0 0% = 5000 How do I make it so that i can calculate both the negative and positive values? What i've tried: local nrstate = "-" local x = therm

C++ Lua access violation when table size is above treshold

Recently I became Lua expert in my team due to an issue occurring when we want to send a large table to the following function: int native_sl_shootlaserpulse(

Mutex in WRK lua script

I have the following script in Lua (custom.lua): local data = loadFile() local count = -1 request = function() url_path = "/resource" -- lock count

main:lua attempt to call box2d_init a nil value, why?

EDIT: obviously I didnt install the library correctly? (my version of love is 11.4). perhaps i should rename the question to how do i properly install this libr

bad argument #1 to 'insert' (table expected, got nil)

I have a problem with lockpick on my gmod dark rp server, can you help me please? error: [plogs] addons/plogs/lua/plogs/core_sv.lua:87: bad argument #1 to 'inse

How to truncate text but backwards?

I want to achieve something like this: I give function a string that should be trunctated and a maximum number of characters. local function TruncateBackwards(

Roblox Item is lagging

I add a mesh to follow the player where ever he goes. But the mesh is lagging a bit when the player runs. I understand that it is not rendering quickly enough,

roblox LUA Expected 'end' (to close 'than' at line 3), got '='

function teleportTo(placeCFrame) local plyr = game.Players.LocalPlayer; if plyr.Character then return plyr.Character.HumanoidRootPart.CFrame = p

what version of Lua does raylib use

When I try to use raylib with lua + zerobrane it says it can't require it , here is the output from zerobrane. would not let me copy output but I think you get

Converting a steam hex into steam community id

I am using lua FiveM to get steam hex of a player but i want to convert that hex to a community id like 76561198364192600. How do i got about that? is there an

Split an object based on other intersecting objects

I'm trying to create a wall placement system a kin to Sims, and am having trouble figuring out how to split the wall if you put another wall perpendicular to it

Trouble running the 'sudo docker-compose up' command

Image of the error I am trying to run the 'sudo docker-compose up' command to start some services. Recently, I created some new services, but I keep getting the

LUA psvita TOUCH boton

I'm learning Lua, but I don't understand how to create a button? http://onelua.x10.mx/vita/docs/es/group__touch.html my reference if touch.front.count(

"Failed to initialize Lua VM with Passenger on Docker

I'm trying to setup a development environment that uses docker but the passenger docker image gives me this error over and over again. [1] development-passenger

How do I anchor a part in Roblox Studio without anchoring it?

I made a small test boat for my tower defense game and I need the turret to rotate but not the rest of the boat and I can't anchor the boat because of network o

How to configure alpha.nvim?

I have an init.lua file that contains: require "user.setup.alpha" as in: require "user.options" require "user.keymaps" require "user.autocmds"