NoPixel-minigame
NoPixel-minigame copied to clipboard
[Puzzle / FiveM]: Error with the fivem script
It seems like the script doesn't work, I uploaded it in to my resource folder and ensure it. After calling the export on my client side using
RegisterNetEvent('bb-jewelrob:keypad')
AddEventHandler('bb-jewelrob:keypad', function()
if exports["bb-inventory"]:hasEnoughOfItem("Gruppe6Card3", 1, true) then
exports["hacking"]:hacking(
function() -- success
TriggerEvent("bb-keypad:unlockdoor")
TriggerEvent("inventory:removeItem", "Gruppe6Card3", 1)
end,
function() -- failure
TriggerEvent("inventory:removeItem", "Gruppe6Card3", 1)
TriggerEvent("DoLongHudText", "You Failed!", 2)
end)
else
TriggerEvent("DoLongHudText", "Missing Items!", 2)
end
end)
It gives me this error https://forum.cfx.re/uploads/default/original/4X/b/0/8/b0898bcc0fcffa2d6ba78743ba7409549dbf6576.png
I think there might be some conflict between the .js files and the index.html that was given in the fivem-script