Jump to content

KariiiM

Members
  • Posts

    1,312
  • Joined

  • Last visited

Everything posted by KariiiM

  1. The part that you tried to use timer on it
  2. Ah , you want show your data to the scoreboard?
  3. Look nice,but does this will not make your server with FPS drop?
  4. Post the wanted system script of this gamemode
  5. KariiiM

    GUI

    Yes now fine i got it, working on it when i finish i'll send the results
  6. 1075 lines oks, what did you changed on this code?
  7. KariiiM

    GUI

    I didn't get any new message
  8. KariiiM

    GUI

    I'm going to sleep i'll try that by myself tomorrow if i have time and tell you the results , send me the full code via pm
  9. KariiiM

    GUI

    Try that, addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) guiSetVisible (newLocation, true) showCursor (true) end elseif (source == newLocationCancel) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) guiSetVisible (window, true) end elseif (source == newLocationCreate) then local name = guiGetText(nameInput) local desc = guiGetText(descInput) if (name == "") then guiSetText (errorMessage, "You have not entered a name for the teleport.") return end if (desc == "") then guiSetText (errorMessage, "You have not entered a description for the teleport.") return end -- ill continue this after end end)
  10. KariiiM

    GUI

    nameInput and descInput are Edit boxs?
  11. KariiiM

    GUI

    Try this and tell me the result addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) guiSetVisible (newLocation, true) showCursor (true) end elseif (source == newLocationCancel) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) guiSetVisible (window, true) end elseif (source == newLocationCreate) then if (nameInput == "") then guiSetText (errorMessage, "You have not entered a name for the teleport.") return end if (descInput == "") then guiSetText (errorMessage, "You have not entered a description for the teleport.") return end -- ill continue this after end end)
  12. KariiiM

    GUI

    You're using elseif without adding then so it will return false with ERRORs elseif (source == newLocationCreate) Must be like that elseif (source == newLocationCreate) then Full code addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) guiSetVisible (newLocation, true) showCursor (true) end elseif (source == newLocationCancel) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) guiSetVisible (window, true) end elseif (source == newLocationCreate) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) showCursor (false) end end end)
  13. KariiiM

    GUI

    You're welcome Stefan
  14. KariiiM

    Internet Speed

    20$ everyweek? O_o aw
  15. What he said is looking impossible , he need a .lua file with declaring it to a meta.xml
  16. KariiiM

    GUI

    addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end end end)
  17. The meaning of it, is as you know when you open your GTA SA game , you'll play alone with some peds are programmed except of MTA, It has a great advantages for example you can play with real players or you can make some friends from it ,maybe you can meet them in real life, personally it happened to me.
  18. KariiiM

    [HELP] Please

    He's asking for how to do it
  19. KariiiM

    [HELP] Please

    Name is able to be changed but serial no so simply get the player serial and check it ,if it equal to the serial ID that you got
  20. Great video like always, keep the good job
  21. oh, that. I already did it, cause it gave me warnings. But still nothing. Maybe there's something wrong with this function , im about to report it
  22. Also, use /debugscript 3 to check if there's any error
×
×
  • Create New...