NoPixel-minigame icon indicating copy to clipboard operation
NoPixel-minigame copied to clipboard

[Puzzle / FiveM]: Error with the fivem script

Open Kroawn opened this issue 2 years ago • 0 comments

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

Kroawn avatar Apr 19 '22 09:04 Kroawn