• VIP Lifetime 20 euro this weekend! 25 % off everything: VIP and Credits!

    Its the holiday month, therefor VIP and Credits have been reduced in price!
    VIP does not need any credits to unlock content and download it.
    Payments via Crypto: Please open a ticket, if you experience any issues, or if you miss your coin as an option in the list we have alot of wallets available.

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

monetleak3d

Active member
Jun 20, 2023
152
31
28
Credits
912
-=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
6
0
1
Credits
202
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
322
-- 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

Top