Codem - Craft [ESX - QB ] [RELEASE]

and all working

Its a free release, I agree it needs some clean up, but your comment is rude, and learn how to give constructive criticism.

My constructive advice would be to use 2022 javascript standards. Don’t use jQuery, don’t use var, write code in 1 language and don’t let Mycroft touch it

3 Likes

Overal nice nui , but the code needs work. My advice don’t use “var” anymore and don’t use jquery. Use vanilla javascript and make ur variables readable. Just make the code readable. :face_with_hand_over_mouth:

its a cool script, I respect your work, it has small bugs but everyone can fix them

and how to make the resource images display the ones that are needed? and then I have a picture of a bottle of water everywhere

I personally wouldn’t describe SQL injection as a small bug

To be fair +1 on this! Absolutely cracking job on this.

Yes there is some faults but most things are all good. Its a free release and it’s not hard to translate language to see what things mean but only issue I have had is that you don’t actually need the items to craft, which obviously is massive as it’s the whole purpose. but i’m guessing its easily fixable on your end and also for QBCore players you need to change the SQL from ‘users’ to ‘players’. - As a customer from his other projects too I can personally say huge effort put into all of his scripts.

bug fix The matter of pressing to receive items repeatedly when successfully created

How to You put this part of the code in place of the original one.

Before

$(document).on('click', '.claimButton', function () {
    $.post("https://codem-craft/claimitem", JSON.stringify({
      claimitem :claimitem , claimid:claimid
   }));
});

After

$(document).on('click', '.claimButton', function () {
    $.post("https://codem-craft/claimitem", JSON.stringify({
      claimitem :claimitem , claimid:claimid
   }));
   $(".claimButton" ).prop( "disabled", true );
   $('.claimButton').css('opacity','0.2');
   $(".ply-weight-prog").css("width",0+"%");
   $(".yuzdeilerleme").text("%"+0);
});

Thanks for the free scripts.

4 Likes

superb

tried it with esx till have the error

1 Like

Thank you so much! <3

1 Like

nice man

CrBrowserMain/ undefined (@codem-craft/html/script.js:98)

2 Likes

Thanks for script
but i got stuck when i exit the crafting menu

error in script.js
console.log(playerxp)

2 Likes

@AiakosCodem

error in script.js

…/html/script.js:298

1 Like


When I choose a weapon to see what is needed it throws the following error, any help? I have not been able to solve by myself.


Seeing on my own I found that the problem comes when performing JSON.parse in the “required” var I don’t know exactly why that happens I don’t know much about js :frowning:

Hi, your script is 10! but there is a bug, if someone knows how to solve it please tell me, the bug is the following:
If you hit the claim many times, it gives you that item infinitely, until you close the menu, you can keep claiming the same item as long as you want…

Help Please

PLS fix your script we love it but its bit broken :frowning:

mantap