Skip to content

0.0.3

Compare
Choose a tag to compare
@shr0x shr0x released this 18 May 12:24
· 129 commits to main since this release

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