• DOUBLE WEEK ON EVERYTHING!

QBCORE NP-EMOTE FIXED Keybinds Working and Save in Database (2 Viewers)

monetleak3d

Active member
Jun 20, 2023
164
32
28
Credits
6,607
-=Stripped Content=-
Drag and Drop QBCOre , SQL Inside File . Also can set keybinds by commands .

Keybinds Default works with Shift+Numpad 0 to 6 with Numpad Off , After you can change the keys in Fivem Setting Key Binds
with Delete Key Emotes cancel

Paste this to qb-radialmenu/config.lua
{
id = "emotes",
displayName = "Emotes",
icon = "#emotes",
enableMenu = function()
local Data = QBCore.Functions.GetPlayerData()
return not Data.metadata["isdead"] and not Data.metadata["inlaststand"]
end,
functionName = "emotes:OpenMenu"
},
or for events or function use "emotes:OpenMenu"

Anything Comment Below
18 folders not recommended lol...
 

exodizzmo

Member
God VIP
Jan 16, 2024
8
0
1
Credits
380
Tried to use, resources are running but when I add the function to qb-radialmenu it gives the following errors. I am probably doing something wrong. Please advise 1716745301160.png
 

Asnt73

Active member
Aug 7, 2022
82
9
8
27
Nepal
Credits
349
-- 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"
 
  • Post hidden due to user being banned.
  • Post hidden due to user being banned.

Users who are viewing this thread

  • F
Top