Browser::markAsChat

From RAGE Multiplayer Wiki
Revision as of 11:27, 13 May 2018 by MrPancakers (talk | contribs) (Created page with "{{ClientSide}} This marks the browser as the chat for the server. == Syntax == <syntaxhighlight lang="javascript"> browser.markAsChat(); </syntaxhighlight> == Examples ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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