-
Posts
99 -
Joined
-
Last visited
Details
-
Occupation
None
Recent Profile Visitors
1,701 profile views
Om.'s Achievements
Punk-@ss B*tch (12/54)
6
Reputation
-
Instead or outputChatBox and JSON, You can use iprint function to print the table
-
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
-
not so exp, but tried using cancelEvent() before calling chatMain function?
-
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
-
You can use mine, although it's a bit hard to install, i've mentioned the installation steps on the topic. Resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=13930 Topic:
-
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)
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=13929 DELETE PLS
-
no, fighting with my own self.
-
Login System Some Images of GUI: https://puu.sh/sJnRg/2928be4ec3.png https://puu.sh/sJnTw/cb57d4b9ce.png 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: https://community.multitheftauto.com/index.php?p=resources&s=details&id=13930 Exports: -- To Be Updated.. exports.login:getPlayerUsername(player) -- Gets Player Username.