-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
try this: policjabrama2 = createObject ( 980, 1545.7504882813, -1628.373046875, 15.156204223633 , 0, 0, 85 ) function policjaO2 () if (getPlayerTeam(source) == "Police") then moveObject ( policjabrama2, 3200, 1546.0052490234, -1618.1116943359, 15.327953338623) end end addCommandHandler("open7", policjaO2 ) function policjaC2 () if (getPlayerTeam(source) == "Police") then moveObject ( policjabrama2, 3200, 1545.7504882813, -1628.373046875, 15.156204223633 ) end end addCommandHandler("close7", policjaC2 )
-
I'm having a problem with this script, When the player presses b it opens a Window but if the Window is already open it's suppose to close, here's my script: dummy= guiCreateWindow(179,102,448,361,"J Dummy",false) if (guiGetVisible(dummy) == false) then guiSetVisible(dummy,true) else guiSetVisible(dummy,false) end
-
HI again, I want to know how to play a radio station from the internet and not coming from my computer
-
I was having a problem with it earlier, but after when I put if (images ~= nil) then guiSetVisible(images,true) end
-
Actually, I was just working on this for my Login GUI, the onClientGUIClick works if you define the image as an gui, I was looking at one of my old scripts and was wondering "How did I get this?" then I noticed that I defined it, anyways good luck with your script
-
thanks EDIT: I was going to ask him another question but I solved it. and thanks Castillo
-
sorry Cadu12, it's to late, Solidsnake is right, if the gui Input Enabled is on then it blocks the bind keys
-
ok, thanks for teling me that, I'll try now
-
It's still not working, When I put in my username and password then press enter, nothing happens, i think it's the function for some reason. If you don't believe me, then come on to Jay Resources to try.
-
sorry, this is how it looks: addEventHandler("onClientPlayerJoin",getRootElement(),function() bindKey("enter","down",finishNow) end) function finishNow() if (guiGetVisible(logGui) == true) then local username = guiGetText(user_edit) local password = guiGetText(pass_edit) if (username ~= "") and (password ~= "") then triggerServerEvent("log",getRootElement(),username,password,gui) else outputChatBox("*INFO*: Please enter your username and password",getLocalPlayer(),255,0,0) end elseif (guiGetVisible(regGui) == true) then local username = guiGetText(user_edit1) local password = guiGetText(pass_edit1) if (username ~= "") and (password ~= "") then triggerServerEvent("reg",getRootElement(),username,password) else outputChatBox("*INFO*: Please enter a username and password",getLocalPlayer(),255,0,0) end end end addEvent("c1",true) addEventHandler("c1",getRootElement(),function() if (guiGetVisible(logGui) == true) and (guiGetVisible(img) == true) then unbindKey("enter","down",finishNow) destroyElement(img) destroyElement(logGui) showCursor(false) guiSetInputEnabled(false) end end) addEvent("c2",true) addEventHandler("c2",getRootElement(),function() if (guiGetVisible(regGui) == true) and (guiGetVisible(logGui) == true) and (guiGetVisible(img) == true) then unbindKey("enter","down",finishNow) destroyElement(img) destroyElement(regGui) destroyElement(logGui) showCursor(false) guiSetInputEnabled(false) end end)
-
Hi all, Today I'm editing my Login GUI and when the player presses enter the Login GUI is suppose to close, but when I press enter it doesn't close, Here's my script: function finishNow() if (guiGetVisible(logGui) == true) then local username = guiGetText(user_edit) local password = guiGetText(pass_edit) if (username ~= "") and (password ~= "") then triggerServerEvent("log",getRootElement(),username,password,gui) else outputChatBox("*INFO*: Please enter your username and password",getLocalPlayer(),255,0,0) end elseif (guiGetVisible(regGui) == true) then local username = guiGetText(user_edit1) local password = guiGetText(pass_edit1) if (username ~= "") and (password ~= "") then triggerServerEvent("reg",getRootElement(),username,password) else outputChatBox("*INFO*: Please enter a username and password",getLocalPlayer(),255,0,0) end end end addEvent("c1",true) addEventHandler("c1",getRootElement(),function() if (guiGetVisible(logGui) == true) and (guiGetVisible(img) == true) then unbindKey("enter","down",finishNow) destroyElement(img) destroyElement(logGui) showCursor(false) guiSetInputEnabled(false) end end) addEvent("c2",true) addEventHandler("c2",getRootElement(),function() if (guiGetVisible(regGui) == true) and (guiGetVisible(logGui) == true) and (guiGetVisible(img) == true) then unbindKey("enter","down",finishNow) destroyElement(img) destroyElement(regGui) destroyElement(logGui) showCursor(false) guiSetInputEnabled(false) end end) It basically gets the text in the username and password box and triggers an event, then another event triggers back to the script and unbind the key.
-
make a resource with mysql, then add in the mtaserver.conf file: <resource src="mysql" startup="1" protected="0"/>
-
EDIT: Srry Moderator, i thought it would be the FPS
-
you mean in the console not the Config File EDIT: SRRY, CAN U DELETE UR POST SO I COULD DELETE THIS ONE PLEASE?
-
Can you post the DX Dialog please:
-
ohh, srry, I didn't really know what he was talking about, and I forgot about that too.
-
Did it came with the Server or did both of you guyz downloaded it?
-
np(Your Welcome)
-
maybe you put your Real IP in your MTAServer.conf file, if you have a Router, I suggest putting in the Router ip
-
it can't start automatically, only if the scripts are only client side, If there's a server sided file the person has to download it.
-
type in openports in the Console it should show you if it's opened
-
Maybe your ports aren't open