• Content count

  • Joined

  • Last visited

  • Days Won


TheMOG last won the day on January 10

TheMOG had the most liked content!

Community Reputation

40 Good


About TheMOG

  • Rank
    Playa Partner
  • Birthday 14/05/1998

Recent Profile Visitors

1,981 profile views
  1. TheMOG

    Press TAB to skip guiEdits

    you using guiSetInputEnabled? If not, it should work as default.
  2. TheMOG

    Multiple commands bind

  3. TheMOG


    Anyone please ?
  4. TheMOG


    Hi! I'm trying to calculate the position for a scrolling bar. I tried so many way, but i just failed. After wasted 2 hours for nothing, can anybody help me please ? If needed, i'll post the code. I have a bg and i want the scrolling bar working with that. local screenSize = {guiGetScreenSize()} local panelW, panelH = 500, 300 local panelX, panelY = screenSize[1]/2-panelW/2, screenSize[2]/2-panelH/2 maxDraw = 5 --currentRow is when scrolling. Thats + 1 or -1 dxDrawRectangle(panelX - 40, panelY, 10, panelH, tocolor(0, 0, 0, 220)) -- BG dxDrawRectangle(panelX - 40, panelY + currentRow * maxDraw / #weaponTable, 10, 40, tocolor(0, 200, 0, 190))
  5. TheMOG

    Draw This for Any Resolution [HELP]

    using elementDatas in render = getting the same data every second 60 times
  6. TheMOG

    About ban...

    Maybe you can, but the best solution for this, make your own ban system
  7. TheMOG

    [PROBLEM] Some players can´t click on GUI Elements

    If you can post the half of the code, maybe we can help you better.
  8. TheMOG

    [PROBLEM] Some players can´t click on GUI Elements

    The problem can be the script calling an elementData, can be getElementData(localPlaye, "PlayerLoggedin") , or something else, and u don't set it to a player before calling it.
  9. TheMOG

    [PROBLEM] Some players can´t click on GUI Elements

    is the script not calling any getElementData ?
  10. TheMOG

    [PROBLEM] Some players can´t click on GUI Elements

    check the debug when tryin to click on that
  11. TheMOG


    Edit mine. local DisabledCharacters = "[\\/\\\\\"\\]\\[\\'\\-{}^$*+?,;:!£%&()_=@#~,<.>?]" addEvent("sourceRequest[Register]", true) addEventHandler("sourceRequest[Register]", root, function(username, password) if (client) and (client == source) then local playerSerial = getPlayerSerial(source) if username and #username > 3 and password and #password > 3 then if not pregFind(username, DisabledCharacters) and not pregFind(password, DisabledCharacters) then dbQuery(function(queryHandler, source) local result, rows = dbPoll(queryHandler, -1) for _, data in ipairs(result) do if data["Username"] == username then outputChatBox("This username already in use") return end if data["Serial"] == playerSerial then outputChatBox("You already have an account") return end end -- YOUR DBEXEC HERE outputChatBox("Successfully registered!") end, {source, username, password}, mysql:getConnection(), "SELECT * FROM accounts") else outputChatBox("You can't use special characters!") end else outputChatBox("Username / password must be 3 character") end end end)
  12. TheMOG

    fromJSON + tables problem

    If you using this: - If you have a high player count, it's can cause some lag. local r1 = dbPoll(dbQuery(db, "SELECT * FROM sticks WHERE ID = ? AND model = ?", id, getElementModel(source)), -1) -- I prefer dbQuery(function(id, query) local result, row, _ = dbPoll(query, -1) -- here you can use for k, value in ipairs(result) do -- or simple sticker = result[1] end, {id}, db, "SELECT * FROM stickers WHERE ID=? AND model=?", id, getElementModel(source))
  13. TheMOG

    [HELP] only A to Z and 0 - 9

    Thanks again, sorry
  14. TheMOG

    [HELP] only A to Z and 0 - 9

    Hi, i'm sure that function can be created with a string.find, or idk. So anyone can gimme a little help about how can i get that the pressed character only A to Z, and from 0 to 9 ?