Interaction Controller
Learn how to add interactions.
What is an Interaction?
Creation
function doThisWhenInteractionIsPressed(player: alt.Player) {
Athena.player.emit.message(player, 'Nice!');
}
function GenerateInteractions() {
Athena.controllers.interaction.add({
uid: 'interaction-do-something',
type: 'interaction:DoSomething',
position: { x: 402.397308, y: -1029.67, z: 29.34688 },
description: 'Neato',
callback: doThisWhenInteractionIsPressed
});
}
GenerateInteractions();Removal
Last updated