Browser::markAsChat

From RAGE Multiplayer Wiki
Jump to: navigation, search
Client-Side

This marks the browser as the chat for the server.

Syntax

browser.markAsChat();

Examples

This sets the browser named 'chatbox' to become the chatbox for the server.

mp.gui.chat.show(false); //Disables default RageMP Chat

let chatbox = mp.browsers.new('package://chat/index.html');
chatbox.markAsChat();

See Also