Wheel Menu
Learn how to build a WheelMenu in the Athena Framework on both sides.
Summary
Video Guide
Basic Example - Serverside
InteractionController.add({
position: { x: 0, y: 1, z: 71 },
description: 'Open Wheelmenu',
callback: (player: alt.Player) => {
const menu: Array<IWheelOption> = [
{
name: 'Test the menu!',
icon: 'icon-house',
color: 'red',
data: [
{
description: 'Test the menu!',
icon: 'current icon is => icon-house',
color: 'current color is => red',
}
],
doNotClose: false,
emitServer: 'WheelMenu-TestEvent',
},
];
Athena.player.emit.wheelMenu(player, 'Hello World!', menu);
},
});
alt.onClient('WheelMenu-TestEvent', (player: alt.Player, data: Array<any>) => {
console.log('WheelMenu-TestEvent got fired! Hello World!');
console.log(`Current Data of test-event => ${JSON.stringify(data)}`);
});Basic Example - Clientside
Valid Options
Last updated