Jump to content

How to insert a line break - js?


BOOGITY98

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!

Link to comment
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
Link to comment
Share on other sites

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