Search the Community
Showing results for tags 'close'.
Found 4 results
I decided to dive into the world of rotations. I know this might be incomplete and even incorrect: function openCapo() local theVeh = getPedOccupiedVehicle(localPlayer) local value1 = guiScrollBarGetScrollPosition(caposcroll) if theVeh and value1 then setVehicleComponentRotation (theVeh, bonnet_dummy, value1, rY, rZ) end end I've a GUI already created, and the visibility key bound. The first scrollbar (caposcroll) should affect the bonnet_dummy. This was made with absolute basic thinking process: "if I want doors to open, I need to get the position of the scrollbar". However, I know I still need to tell the game what's the math.min, what's the math.max, and, I think, to also give the order to respond only when the scrollbar is moved. I would appreciate a finger to point me in the right direction.
Greetings, fellow gamers! I recently started having this really annoying issue with MTA:SA 1.5. Basically, servers that should give me two-digits ping give me three-digits. These servers are close by (in my country). When I say recently, it means that it wasn't like this before. In the following list (screenshot) the first 5 servers had around two-digits ping. https://imgur.com/a/WUAWi Discarding the obvious: -My PC runs GTA:SA perfectly fine, with an average of 40fps in highest graphics. No problem on that. -No applications - those that connect to the internet - are opened in the background while playing the game. -Anti-virus not running scans, nor updating. Updated mind information: Now that I think about it, I did modify a few things when I tried to host my own server, a couple of weeks ago. Gave up after finding no way to enter my router's settings to foward ports. I remember modifying IPv4 and IPv6 to find a way into my router. I can't quite remember which were the defaults. At the moment, both are in "Obtain IP automatically". I also used a program called "Port Foward Utilities" that the MTA Wiki recommended. I will try modifying a few things, see if that changes anything. If I do find a solution, I'll edit this post. If no updates are seen, anyone is free to lend a hand. Thanks in advanced! Moony -
function createPasswordWindow() windowChangepw = guiCreateWindow(0.3859,0.349,0.2130,0.1628,"Jelszó váltás",true) guiSetSize(windowChangepw, 165, 21) guiSetAlpha(windowChangepw,0.80000001192093) editOldpw = guiCreateEdit(110,29,180,21,"",false,windowChangepw) guiSetAlpha(editOldpw,1) guiEditSetMasked(editOldpw,true) labelOldpw = guiCreateLabel(10,29,90,21,"Régi:",false,windowChangepw) guiSetAlpha(labelOldpw,1) guiLabelSetColor(labelOldpw,255,255,255) guiLabelSetVerticalAlign(labelOldpw,"center") guiLabelSetHorizontalAlign(labelOldpw,"left",false) editNewpw = guiCreateEdit(110,60,180,21,"",false,windowChangepw) guiSetAlpha(editNewpw,1) guiEditSetMasked(editNewpw,true) guiEditSetMaxLength(editNewpw,50) labelNewpw = guiCreateLabel(10,60,90,21,"Új:",false,windowChangepw) guiSetAlpha(labelNewpw,1) guiLabelSetColor(labelNewpw,255,255,255) guiLabelSetVerticalAlign(labelNewpw,"center") guiLabelSetHorizontalAlign(labelNewpw,"left",false) buttonChangepw = guiCreateButton(10,91,280,23,"Változtatás",false,windowChangepw) guiSetAlpha(buttonChangepw,1) buttonClosepw = guiCreateButton(10,115,90,23,"Bezár",false,windowChangepw) guiSetVisible(windowChangepw, false) addEventHandler("onClientGUIClick", buttonChangepw, clientSubmitChangepw, false) addEventHandler("onClientGUIClick", buttonClosepw, false) end --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- function turbeszbezar() guiSetVisible(windowChangepw, false) showCursor(false) end addEventHandler("onClientGUIClick", buttonClosepw, false) --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- What wrong? Why not working?