BOOGITY98 Posted October 10, 2018 Posted October 10, 2018 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!
MrPancakers Posted October 11, 2018 Posted October 11, 2018 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 1
BOOGITY98 Posted October 11, 2018 Author Posted October 11, 2018 Yeah I think I’m gonna resort to that. Thanks!
ragempdev Posted October 12, 2018 Posted October 12, 2018 If you allowed HTML tags at via mp.gui.chat.safeMode, then you can use <br/> just like any HTML tag.
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