• Content Count

  • Joined

  • Last visited

Community Reputation

5 Neutral

About Om.

  • Rank


  • Occupation

Recent Profile Visitors

945 profile views
  1. Om.

    mysql select question

    Instead or outputChatBox and JSON, You can use iprint function to print the table
  2. Om.

    [Help]Fake Owner name Kick

    OR, You can use something like table to protect many nicks e.g local protected = { ["Nickname1"] = "Player 1 Serial", ["Nickname2"] = "Player 2 Serial" } function checkForNickname() local name = getPlayerName(source) if protected[name] then local serial = getPlayerSerial(source) if serial ~= protected[name] then kickPlayer(source, "Nickname is protected!") end end end addEventHandler("onPlayerJoin", root, checkForNickname) addEventHandler("onPlayerChangeNick", root, checkforNickname) Still didn't test it tho, should work
  3. Om.

    Rewriting Default Commands

    not so exp, but tried using cancelEvent() before calling chatMain function?
  4. Om.

    GTA SA can not find audio card

    If you mean this: Then it's probably your pc. For me, this error occurs whenever I don't have my audio device (Headphones/Speakers) plugged in. If it's plugged in then i get no error(s). Incase you've already plugged your headsets and it still says the same, You gotta install Realtek Audio Drivers
  5. Om.

    Login Panel

    You can use mine, although it's a bit hard to install, i've mentioned the installation steps on the topic. Resource: Topic:
  6. Well, This one worked too :3 thank you
  7. Om.

    mysql error

    in dbQuery, you have to put 2 argument, first the connection handler, second is mysql query. Example: conn = dbConnect("blabla") query = dbQuery(conn, "Your MySQL Query.")
  8. Oh. i see, thanks. I'll try that
  9. function mutePlayer(button) if button == "left" then if (source == playerTab.button[2]) then player = guiGridListGetSelectedItemText(GUIEditor.gridlist[1]) time = guiGetText(playerTab.combobox[1]) reason = guiGetText(playerTab.edit[1]) thePlayer = getPlayerFromName(player) if (time == "10 mins") then setElementData(thePlayer, "isPlayerMuted", true) setTimer(setElementData, 1000, 1, getPlayerFromName(player), false) outputChatBox("(Admin) " .. player .. " has been muted for 10 minutes by " .. getPlayerName(localPlayer) .. " for " .. reason) end guiSetVisible(playerTab.window[1], false) guiSetVisible(GUIEditor.window[1], true) end end end addEventHandler("onClientGUIClick", resourceRoot, mutePlayer) Debug Error says: Bad argument @ 'setElementData' [Expected string at argument 2, got boolean on this line: setTimer(setElementData, 1000, 1, getPlayerFromName(player), false)
  10. thank you:)
  11. Thank you
  12. Thank you. I just released it. you can check if you want.
  13. Om.

    Report community resources here! DELETE PLS
  14. Om.

    Chat and Fun

    no, fighting with my own self.
  15. Login System Some Images of GUI: Features: Uses External MySQL Database for register/login Logs in user to MTA System if account exist. It is opensource Installation: Configure your database configurations in server.lua Export database.sql to your selected database. Add this resource to your ACL's admin group and boom! Finished! You can start the script and connect to the server! Download Links MTA Community Resource: Exports: -- To Be Updated.. exports.login:getPlayerUsername(player) -- Gets Player Username.