BrowserDomReady: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 40: | Line 40: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
==See more== | |||
{{Browser_definition_c}} | |||
[[Category:Client-side Event]] | |||
Latest revision as of 03:34, 28 May 2024
Client-Side Event
This event is called every time a CEF Browser dom is ready.
C# Syntax
public delegate void OnBrowserDomReadyDelegate(HtmlWindow window);
Parameters
- window: The browser handler, output expects RAGE.Ui.HtmlWindow type.
Example
The example below shows up a message for a player when a CEF Browser DOM is ready.
Events.OnBrowserDomReady += OnBrowserDomReady;
public void OnBrowserDomReady(HtmlWindow window)
{
RAGE.Chat.Output("EPICMEN, Your CEF Browser DOM is now ready!");
}
JavaScript Syntax
mp.events.add('browserDomReady', (browser) => {});
Parameters
- browser: The browser handler, output expects any type.
Example
The example below shows up a message for a player when a CEF Browser DOM is ready.
mp.events.add('browserDomReady', (browser) => {
mp.gui.chat.push('Hold on, get set, goooo! Your CEF Browser DOM is now ready.');
});
See more
- Functions:
- Properies: