SullyDawish

pls help me with this welcoming letter

Recommended Posts

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 . 

 

p_956gkgj21.jpg

 

  

Share this post


Link to post

Do you want to remove Omg "some arabic text" Omg ? Or  Connected [ MTA SA server 1.5.5 [GNU/Linux]]? 

Share this post


Link to post

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.

Share this post


Link to post

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 . 

 

p_956gkgj21.jpg

im tryin remove  OMG " arabic text " OMG  where can i find it 

Share this post


Link to post

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)

 

  • Like 1

Share this post


Link to post

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;

6Cx1JpP.png

 

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: 

fvb5xyA.png

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.

  • Like 3
  • Thanks 1

Share this post


Link to post
1 minute ago, Pirulax said:

@MIKI785's solution is the best I think.

It is.. my advice is more for general purpose.

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.