Jump to content

About This File

What is this?

  • This is a @MrPancakers's custom chat with scroll bar with a simple addition - it adds option to use arrow up, down key to move thru your chat history. Just like in SAMP!

How to install?

  • Extract everything into client_packages folder and add the chat script into your index.js.
  • require("/chat/index.js");

Note

  • This may include some bugs and I do not provide "tech support" for it
  • This was created in version 0.3.7

Credits

  • Like 2

User Feedback

Recommended Comments

Smile325

Posted

Without Screenshots?

HankSteiner

Posted (edited)

i can't edit my last post! so here is a updated Version:

Thanks to @Nominal on Discord for the Help!
for this to work in 1.1 add:

mp.events.add("chat:push"chatAPI.push)
mp.events.add("chat:clear"chatAPI.clear)
mp.events.add("chat:activate"chatAPI.activate)
mp.events.add("chat:show"chatAPI.show)

after:

    show: (toggle=>
    {
        if(toggle)
            $("#chat").show();
        else
            $("#chat").hide();
        
        chat.active = toggle;
    }
};

and add the following in index.js to get working colors:

mp.gui.chat.colors = true;

now u can add Color to your message like this:

mp.players.broadcast("["+player.id+"][!{#cc2121}Admin!{#ffffff}][!{#00FF00}"+player.name+"!{#ffffff}]: "+text)
Edited by HankSteiner

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
×
×
  • Create New...