Destroys browser instance.
<syntaxhighlight lang="javascript">browser.destroy();</syntaxhighlight>
...
314 bytes (32 words) - 08:55, 7 May 2018
...state. Active state is true by default when creating a browser, setting a browser's active property to false will hide it, and true will show it.'''
browser.active; //getter
...
867 bytes (104 words) - 17:28, 2 July 2024
...evaluated browser code is being cached, so it is not recompiling the same browser JavaScript code again and again - this approach will give you a better perf
browser.executeCached(executedCode);
...
516 bytes (67 words) - 12:43, 20 November 2021
'''Function''': Creates a browser
let browser = mp.browsers.new("http://package/index.html");
...
539 bytes (61 words) - 02:06, 4 January 2025
Creates a new browser.
CEF = new RAGE.Ui.HtmlWindow(way); // Creating of browser ( way = "package://cs_packages/test.html" )
...
638 bytes (82 words) - 02:10, 4 January 2025
Calls JavaScript code inside the browser.
browser.execute(executedCode);
...
425 bytes (50 words) - 22:33, 20 April 2020
With headless browser, you can create anything in HTML and use it in game as game texture, for ex
const browser = mp.browsers.newHeadless("http://package/page/index.html", 1920, 1080, fal
...
1,004 bytes (112 words) - 17:46, 24 May 2024
<syntaxhighlight lang="javascript">browser.reload(ignoreCache);</syntaxhighlight>
let browser = mp.browsers.at(0);
...
391 bytes (42 words) - 08:56, 7 May 2018
Calls a registered browser `mp.events.add`
browser.call(eventName, ...args);
...
635 bytes (69 words) - 17:58, 24 May 2024
This marks the browser as the chat for the server.
browser.markAsChat();
...
515 bytes (64 words) - 11:27, 13 May 2018
...orderId`, which acts like a z-index for determining the rendering order of browser instances. Higher `orderId` values display in front of those with lower val
browser.orderId = value; // Sets the orderId
...
1 KB (125 words) - 21:59, 2 November 2024
'''Function''': Set or get the url of a browser
browser.url;
...
590 bytes (77 words) - 20:05, 6 February 2021
...se click events in a CEF browser. It enables interactions with the in-game browser interface programmatically by sending click coordinates, button type, and a
browser.sendMouseClickEvent(buttonType, x, y, isUp);
...
1 KB (136 words) - 20:45, 13 December 2024
Simulates mouse movement at the specified coordinates within the browser.
browser.sendMouseMoveEvent(x, y);
...
723 bytes (76 words) - 20:37, 13 December 2024
const browser = mp.browsers.newHeadless("http://package/page/index.html", 1920, 1080, fal
mp.console.logInfo(`${browser.headlessTextureHeightScale}`);
...
491 bytes (44 words) - 17:50, 24 May 2024
const browser = mp.browsers.newHeadless("http://package/page/index.html", 1920, 1080, fal
mp.console.logInfo(`${browser.headlessTextureName}`);
...
496 bytes (46 words) - 17:49, 24 May 2024
const browser = mp.browsers.newHeadless("http://package/page/index.html", 1920, 1080, fal
mp.console.logInfo(`${browser.headlessTextureDict}`); //prints 'cef_tex_dict'
...
532 bytes (51 words) - 17:49, 24 May 2024
browser.inputEnabled
const browser = mp.browsers.newHeadless("http://package/page/index.html", 1920, 1080, fal
...
488 bytes (48 words) - 17:53, 24 May 2024
This function calls registered Remote Prodecure Call (RPC) from browser to client-side and expects a callback.
[[Category:Clientside API]]
...
1 KB (121 words) - 18:44, 24 May 2024
...lse || Announce to the master server so people can see you in their server browser.
...ugging || false || If set to true, it'll report every single usage of the API out of proper thread. Use it only for debugging since it adds some CPU over
...
6 KB (815 words) - 16:09, 15 September 2024