-- Register a command to open the emote menu
RegisterCommand('openemotemenu', function()
TriggerEvent('emotes:OpenMenu')
end, false)
TriggerEvent('chat:addSuggestion', '/openemotemenu', 'Open the emote menu')
-- Create a keymapping for the emote menu
RegisterKeyMapping('openemotemenu', 'Open Emote Menu', 'keyboard', 'F3')
AddEventHandler('emotes:OpenMenu', function()
print('Emote menu opened')
end)
or for JS
// Register a command to open the emote menu
RegisterCommand('openemotemenu', function() {
emit('emotes:OpenMenu');
}, false);
TriggerEvent('chat:addSuggestion', '/openemotemenu', 'Open the emote menu');
// Create a keymapping for the emote menu
RegisterKeyMapping('openemotemenu', 'Open Emote Menu', 'keyboard', 'F3');
// Listen for the 'emotes:OpenMenu' event
on('emotes:OpenMenu', function() {
console.log('Emote menu opened');
});
or in radialmenu i have already told use same format as yours or copy on of you format in Funtion or Events Paste "emotes:OpenMenu"