All Activity
- Yesterday
-
MTA CRASH 2025
Lord Henry replied to Junior_Soprano's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Olá. Esse crash acontece devido a falta de memória de vídeo. Mais informações neste tópico. -
vinicius santos joined the community
-
ashraf_rzk joined the community
-
marreta55 joined the community
-
saeedch86 joined the community
-
Going to revive WSS, https://www.wssrpg.co.uk/ .
-
You have to put it at the location where you want to make your trace. If you do not put it inside of another function, it will return "in main chunk", because it is tracing function calls starting from the main chunk. For example: function test1() test2() -- call test2 end function test2() test3() -- call test3 end function test3() test4() -- call test4 end function test4() -- ENDS HERE print(debug.traceback()) end test1() -- STARTS HERE Will return: stack traceback: Main.lua:14: in function 'test4' Main.lua:10: in function 'test3' Main.lua:6: in function 'test2' Main.lua:2: in function 'test1' Main.lua:17: in main chunk [C]: in ? It will show all functions that have been called. And for your current code, it might give you the function(s) where, your onClick got lost.
-
0620d0xt3am joined the community
-
burak8118 joined the community
-
burak1881 joined the community
-
DanilProxorov1 joined the community
-
Gh0styy started following Pls help my game keep craching
-
Version = 1.6-release-23196.0.000 Time = Tue Jun 3 05:28:59 2025 Module = C:\Program Files (x86)\MTA San Andreas 1.6\mods\deathmatch\client.dll Code = 0xC0000005 Offset = 0x0024BE40 EAX=00000000 EBX=0EDCA460 ECX=70EA3FF6 EDX=00000000 ESI=00000352 EDI=0EDCA3D0 EBP=0028EC78 ESP=0028EC68 EIP=6777BE40 FLG=00010202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B it keep craching when i enter Drift paradise server, and i was able to play it nromla put some times it crach when i teleport and it stop working
-
Version = 1.6-release-23196.0.000
Time = Tue Jun 3 05:28:59 2025
Module = C:\Program Files (x86)\MTA San Andreas 1.6\mods\deathmatch\client.dll
Code = 0xC0000005
Offset = 0x0024BE40EAX=00000000 EBX=0EDCA460 ECX=70EA3FF6 EDX=00000000 ESI=00000352
EDI=0EDCA3D0 EBP=0028EC78 ESP=0028EC68 EIP=6777BE40 FLG=00010202
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
Mta keep craching every time to enter Drift paradise server, i was playing normal
-
Gh0styy joined the community
-
Gregan started following How to find out how much the lock is issued?
-
https://youtu.be/cu9RG7BFiVw Модератор мне написал"Ждите пока пройдет бан если конечно он не навсегда".По ошибке CD 46.(см ссылку) А как мне понять навсегда он или нет?Насколько он дней?
-
#\_oskar_/# started following [HELP] Function transfer from within constructor
-
try this function CreateBtn(config) local self = setmetatable({}, Button) self.x = config.x self.y = config.y self.width = config.width self.height = config.height self.text = config.text or "Button" self.color = config.color or "blue" self.fade = config.fade ~= false self.onClick = config.onClick or false -- // This always returns false, even if I added onClick function. self.alpha = self.fade and 0 or 255 self.fade_step = 15 self.visible = true self.currentColor = Theme.colors.button[self.color].background table.insert(activeButtons, self) return self end function createButton(x,y,w,h,text,color,fade,onClick) return CreateBtn({x=x,y=y,width=w,height=h,text=text,color=color,fade=fade,onClick=onClick}) end local btn1 = createButton(50, 200, 120, 40, "Button 1", "blue", true, function(self) outputChatBox("Clicked Button 1") end) local btn2 = createButton(150, 360, 120, 40, "Button 2", "red", true, function(self) outputChatBox("Clicked Button 2") end) local btn3 = createButton(250, 420, 120, 40, "Button 3", "green", true, function(self) outputChatBox("Clicked Button 3") end) or function createButton(config) local self = setmetatable({}, Button) self.x = config.x self.y = config.y self.width = config.width self.height = config.height self.text = config.text or "Button" self.color = config.color or "blue" self.fade = config.fade ~= false self.onClick = config.onClick or false -- // This always returns false, even if I added onClick function. self.alpha = self.fade and 0 or 255 self.fade_step = 15 self.visible = true self.currentColor = Theme.colors.button[self.color].background table.insert(activeButtons, self) return self end -- // Example.lua, example for using: loadstring(exports.ui:injectModules())() --[[The function name Button must match the actual constructor function, which is createButton. You should call it using createButton({ ... }) instead of Button({ ... }).]] local btn = createButton({ x = 20, y = 60, width = 100, height = 30, text = "Click", color = "blue", fade = true, onClick = function(self) outputChatBox("Clicked the button.") -- // It's not working. end }) If everything is already defined correctly, then please share the code that handles the button click. The code you posted has no issues and works fine.
- Last week
-
No, like this: Button({ ... }) iprint(debug.traceback())
-
matusjulho242 started following Lord Henry
-
Like this? function createButton(config) local self = setmetatable({}, Button) iprint(debug.traceback()) self.x = config.x self.y = config.y self.width = config.width self.height = config.height self.text = config.text or "Button" self.color = config.color or "blue" self.fade = config.fade ~= false self.onClick = config.onClick or false -- // This always returns false, even if I added onClick function. self.alpha = self.fade and 0 or 255 self.fade_step = 15 self.visible = true self.currentColor = Theme.colors.button[self.color].background table.insert(activeButtons, self) return self end
-
I printed the traceback method you gave me right after creating the Button object. In the line I printed, it said "in main chunk", I don't know what it means.
-
Hmm. Can you show a trackback from your button constructor? iprint(debug.traceback()) Just to get an idea trough how many other functions it's constructed. Not sure what the results are, but it might give you some other places to look at and find where your value gets lost. Make sure to only construct one thing at the time, else it generates too much.
-
Olá, boa tarde a todos, como estão? vou logo ao ponto: Version = 1.6-release-23196.0.000 Time = Mon Jun 2 14:56:34 2025 Module = C:\ProgramData\MTA San Andreas All\1.6\GTA San Andreas\gta_sa.exe Code = 0xC0000005 Offset = 0x003C91CC EAX=1470EA48 EBX=1470EA38 ECX=0177FA90 EDX=00201D68 ESI=00000000 EDI=00000001 EBP=0177FC44 ESP=0177FA70 EIP=007C91CC FLG=00210202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B está dando esse erro toda vez que jogo uns 5minutos
-
oyuna girdiğimde böyle bir hata ile karşılaştım hiçbir sunucuya giremiyorum hepsinde aynı şey çıkıyor oyunu bıraktıgımda düzgün çalışıyordu hiçbir sunucudan yasaklanmamıştım
-
Я хочу пожаловаться на МТА не могу зайти не в один лаунчер забанили не за что
-
I am sure that the problem is not in the injectModules() function. There is a prepared Window class next to the Button class, I can use it as Window({...}) by using the injectModules() function. Similarly, I can print the button and get the argument variables by using Button({...}). Only function operations return "nil" value.
-
One of the common problems is that function values are not clone able. Functions rely on their context and can therefore not being copied to another context. But not sure if that is the issue. For the Button class I am missing some context. In the first file it is used as a metatable. And in the second file it is used as a function. (which might also be a metatable, but I am unable to verify it because it is missing) Is this export importing Button.lua? Other: Watch out for setTimer parameters cloning Export cloning TriggerEvent cloning Original metatable data is modified by another button creation Might need to use raw(get/set) (context based): https://www.lua.org/manual/5.1/manual.html#pdf-rawset https://www.lua.org/manual/5.1/manual.html#pdf-rawget
-
Забанили не за что не могу зайти не в один лаунчер
-
Hi, I created a constructor function to create an object. Inside this function, a function named "onClick" is defined and this function is mandatory because I am writing a DX library. However, when I create the object, even if I define the onClick function inside the object, it always returns the value as "nil". I did a few tests, it has nothing to do with mouse locations or anything else. The button click function works, the only problem is that I cannot define the onClick function. -- // Button.lua constructor: function createButton(config) local self = setmetatable({}, Button) self.x = config.x self.y = config.y self.width = config.width self.height = config.height self.text = config.text or "Button" self.color = config.color or "blue" self.fade = config.fade ~= false self.onClick = config.onClick or false -- // This always returns false, even if I added onClick function. self.alpha = self.fade and 0 or 255 self.fade_step = 15 self.visible = true self.currentColor = Theme.colors.button[self.color].background table.insert(activeButtons, self) return self end -- // Example.lua, example for using: loadstring(exports.ui:injectModules())() local btn = Button({ x = 20, y = 60, width = 100, height = 30, text = "Click", color = "blue", fade = true, onClick = function(self) outputChatBox("Clicked the button.") -- // It's not working. end })
-
i tried installing it and it works yeah a bit laggy but works for seconds and truns off giving me "Serial Validation" the wiki didn't help me that much tbh. should i try installing winetricks or run mta server or what ?
-
This is perfect, thank you Burak.
-
local exampleTable = {"stringitem1", "stringitem22", "stringitem333", "The Longest String Of Text", "abcde"} function getLongestString(strTable) local str = strTable[1] for i=1,#strTable do if string.len(strTable[i]) > string.len(str) then str = strTable[i] end end return str end print(getLongestString(exampleTable)) --result : The Longest String Of Text try this
-
Hi good evening everyone, I have below a table of strings How can I loop through this table and return only the longest string? which in this case is: "The Longest String Of Text" ? exampleTable = { "stringitem1", "stringitem22", "stringitem333", "The Longest String Of Text", "abcde" }
-
^^ nice video So could we have that changing of wheel collider in MTA? Probably with some reverse engineering and hooks yes