uiViewBecameReady
Tells your gamemode that an HTML view is ready with its first complete frame.
Signature
Section titled “Signature”server.on("uiViewBecameReady", (payload: UiViewBecameReadyPayload) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
payload |
UiViewBecameReadyPayload |
The player, view, resource and event details. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("uiViewBecameReady", ({ player, viewId, resourceName }) => { server.log(`${player.name}: ${viewId}`);});