Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Puzzle / FiveM]: Error with the fivem script #58

Open
Kroawn opened this issue Apr 19, 2022 · 0 comments
Open

[Puzzle / FiveM]: Error with the fivem script #58

Kroawn opened this issue Apr 19, 2022 · 0 comments

Comments

@Kroawn
Copy link

Kroawn commented Apr 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant