Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. 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 )
  2. Jaysds1

    Problems

    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
  3. Jaysds1

    Problems

    ohhhhhhhhh, ok thanks
  4. Jaysds1

    Problems

    HI again, I want to know how to play a radio station from the internet and not coming from my computer
  5. I was having a problem with it earlier, but after when I put if (images ~= nil) then guiSetVisible(images,true) end
  6. 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
  7. Jaysds1

    Problems

    thanks EDIT: I was going to ask him another question but I solved it. and thanks Castillo
  8. Jaysds1

    Problems

    sorry Cadu12, it's to late, Solidsnake is right, if the gui Input Enabled is on then it blocks the bind keys
  9. Jaysds1

    Problems

    ok, thanks for teling me that, I'll try now
  10. Jaysds1

    Problems

    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.
  11. Jaysds1

    Problems

    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)
  12. Jaysds1

    Problems

    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.
  13. Jaysds1

    Serveri starting

    make a resource with mysql, then add in the mtaserver.conf file: <resource src="mysql" startup="1" protected="0"/>
  14. Jaysds1

    If admin join

    What's the timer for bandi?
  15. EDIT: Srry Moderator, i thought it would be the FPS
  16. Jaysds1

    Serveri starting

    you mean in the console not the Config File EDIT: SRRY, CAN U DELETE UR POST SO I COULD DELETE THIS ONE PLEASE?
  17. Can you post the DX Dialog please:
  18. ohh, srry, I didn't really know what he was talking about, and I forgot about that too.
  19. Jaysds1

    Vehicles Blow Up

    Did it came with the Server or did both of you guyz downloaded it?
  20. maybe you put your Real IP in your MTAServer.conf file, if you have a Router, I suggest putting in the Router ip
  21. 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.
  22. type in openports in the Console it should show you if it's opened
  23. Maybe your ports aren't open
×
×
  • Create New...