0.0.3
Added New Interaction Menu (client-side only)
import { InteractionMenu } from './classes/InteractMenu.class';
mp.events.add("client::interaction:showMenu", async () => {
const data = {
isActive: true,
items: [
{ type: 0, id: 0, text: "Whatever" },
{ type: 0, id: 1, text: "Whatever 1" },
{ type: 0, id: 2, text: "Whatever 2" }
]
};
const response = await InteractionMenu.new(data);
mp.console.logInfo(`Response is: ${response}`);
InteractionMenu.closeMenu();
});
Full Changelog: 0.0.2...0.0.3