SullyDawish Posted August 14, 2018 Share Posted August 14, 2018 when i loging to my server there is welcoming letter on the left corner of my screen where its say Connected [ MTA SA server 1.5.5 [GNU/Linux]] underneath it pls help how can i edited or remove it her is a picture explaining what i mean . Link to comment
Senna Posted August 14, 2018 Share Posted August 14, 2018 Do you want to remove Omg "some arabic text" Omg ? Or Connected [ MTA SA server 1.5.5 [GNU/Linux]]? Link to comment
SullyDawish Posted August 14, 2018 Author Share Posted August 14, 2018 yes i want to remove OMG " arabic text " OMG please help me out Link to comment
MIKI785 Posted August 14, 2018 Share Posted August 14, 2018 It's some script doing that. Try stopping some resource, reconnect and see if it's still there, if so stop another resource, reconnect again and repeat until the message doesn't appear anymore. Then you know which resource is responsible. Link to comment
SullyDawish Posted August 14, 2018 Author Share Posted August 14, 2018 yes its a script i cant find it tho i tried you methods but it didnt goes off at all Link to comment
SullyDawish Posted August 14, 2018 Author Share Posted August 14, 2018 when i loging to my server there is welcoming letter on the left corner of my screen where its say Connected [ MTA SA server 1.5.5 [GNU/Linux]] underneath it pls help how can i edited or remove it her is a picture explaining what i mean . im tryin remove OMG " arabic text " OMG where can i find it Link to comment
MIKI785 Posted August 15, 2018 Share Posted August 15, 2018 Use this to find out which resource is responsible: addEventHandler("onChatMessage", root, function (msg, element) if getElementType(element) == "resource" and element ~= resource then outputChatBox(getResourceName(element)) end end) 1 Link to comment
MTA Anti-Cheat Team Popular Post Dutchman101 Posted August 16, 2018 MTA Anti-Cheat Team Popular Post Share Posted August 16, 2018 You can easily find the resource/piece of code responsible for anything you'd like to locate, by using certain tools. My favourite method: - download & install Notepad++ (https://notepad-plus-plus.org/download) - go to the main folder (parent to all your resource folders) and use Windows explorer to perform a file search for: *.lua like this; Depending on the size of your gamemode, all script files (.lua) will be the search result after a while. Now, select all of them (CTRL + A) and rightclick, "Edit with Notepad++". Notepad++ will take a while to open all files at the same time, again depending on the amount and size of them (trust me, it's never a hang.. just wait). The final step is, once Notepad has the files open, to press CTRL + F which is the "Find" window. Now, enter the keyword or what you need to locate in which script it is (in your case the "OMG ...arabic text.. OMG") and don't just hit enter or search, but click: "Find All in All Opened Files". It's exactly this button: Now we're done, all results from any script files are listed at the bottom of your screen, nicely sorted. Ofcourse grep is easier and quicker ('better' editors like VS code can even include similar functionality), this is just for beginners. You can use these instructions for any type of file if you change the search query in explorer (like .xml, .fx, .js, anything that can be found in resources and contains code or text). Novice tip: you could search (in Notepad++) for anything you see visually in-game (in text form) to identify the resource and part of the code responsible, just write it over from your screen or copy it. These methods are especially helpful when you're not very familiar with your codebase. 3 1 Link to comment
Discord Moderators Pirulax Posted August 16, 2018 Discord Moderators Share Posted August 16, 2018 @MIKI785's solution is the best I think. Link to comment
MTA Anti-Cheat Team Dutchman101 Posted August 16, 2018 MTA Anti-Cheat Team Share Posted August 16, 2018 1 minute ago, Pirulax said: @MIKI785's solution is the best I think. It is.. my advice is more for general purpose. Link to comment
Discord Moderators Pirulax Posted August 16, 2018 Discord Moderators Share Posted August 16, 2018 But for sure, your is more general purpose. you got a like from me for that Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now