Sign in to follow this  
BOOGITY98

How to insert a line break - js?

Recommended Posts

Hey everyone, I was wondering how I am able to create a line break that works in RAGE? I know for regular JS you can use \n as a line break, but it doesn't seem to be working when ran in RAGE. 

 

Example of current code: 

mp.events.addCommand("commands", (player) =>
{
    player.outputChatBox(`!{yellow}` + "-------- CURRENT COMMANDS --------" + "\n" + "Test");
});

Thanks!

Share this post


Link to post
Share on other sites

I'm pretty sure the built in rage chat doesn't allow you to do that because others on the server would then be able to use the same linebreak and obviously abuse chat and make really long chat messages. If you want such a feature I'd make your own chat, otherwise just make multiple lines of player.outputChatBox

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.