• We have a new discord! click here to join
    Any faulty links ? Report them in our discord or via our Ticket System!
    We do everything we can to protect the safety of our visitors, if any resource contains malware in any kind of form or obfuscation please report it aswell ♡♡

QBCORE NoPixel 4.0 Inventory | FREE (3 Viewers)

joeymark

Member
Mar 21, 2021
27
2
8
Credits
358
Yeah have its not that hard if you know a bit of coding
But are you using the s4 health system? Cuz I took a look at the files and found the skelly line. Could you guide me at least on where to start looking? I'm looking forward on trying to implement it myself but I need some help on where to start looking.
 

Freedom

Administrator
God VIP
Apr 21, 2022
119
22
18
Credits
26,945
But are you using the s4 health system? Cuz I took a look at the files and found the skelly line. Could you guide me at least on where to start looking? I'm looking forward on trying to implement it myself but I need some help on where to start looking.


No have my own system for damage.
so far i can see in the s4 you need to create a export from the javascript.

i only look up the code did not test this.

what i can see so far are this the part names of s4.
head
chest
lArm
rArm
lKnee
rKnee

So maybe this will help you out

exports('getHealthForBodyParts', () => { let bodyPartsHealth = { head: 100, chest: 100, lArm: 100, rArm: 100, lKnee: 100, rKnee: 100 }; $.each(cacheData.data.injuresD, function (i, v) { if(configg.BoneLabelText[v.bid].name == 'Head') { bodyPartsHealth.head = bodyPartsHealth.head - (v.count * 10); if (bodyPartsHealth.head < 0) { bodyPartsHealth.head = 0; } } else if(configg.BoneLabelText[v.bid].name == 'Chest') { bodyPartsHealth.chest = bodyPartsHealth.chest - (v.count * 10); if (bodyPartsHealth.chest < 0) { bodyPartsHealth.chest = 0; } } else if(configg.BoneLabelText[v.bid].name == 'LArm') { bodyPartsHealth.lArm = bodyPartsHealth.lArm - (v.count * 10); if (bodyPartsHealth.lArm < 0) { bodyPartsHealth.lArm = 0; } } else if(configg.BoneLabelText[v.bid].name == 'RArm') { bodyPartsHealth.rArm = bodyPartsHealth.rArm - (v.count * 10); if (bodyPartsHealth.rArm < 0) { bodyPartsHealth.rArm = 0; } } else if(configg.BoneLabelText[v.bid].name == 'LKnee') { bodyPartsHealth.lKnee = bodyPartsHealth.lKnee - (v.count * 10); if (bodyPartsHealth.lKnee < 0) { bodyPartsHealth.lKnee = 0; } } else if(configg.BoneLabelText[v.bid].name == 'RKnee') { bodyPartsHealth.rKnee = bodyPartsHealth.rKnee - (v.count * 10); if (bodyPartsHealth.rKnee < 0) { bodyPartsHealth.rKnee = 0; } } }); return bodyPartsHealth; });
 

Freedom

Administrator
God VIP
Apr 21, 2022
119
22
18
Credits
26,945
i laso have that too XD
nice.. still strugeling with the clothing part that when you use a clothing pease it go the the right slot and that the slot only accepts a shirt on the shirt slot and no other items.
only the drag and drop is killing me.
 

xTomatomanx

Active member
Jun 4, 2023
74
8
8
Credits
2,291
nice.. still strugeling with the clothing part that when you use a clothing pease it go the the right slot and that the slot only accepts a shirt on the shirt slot and no other items.
only the drag and drop is killing me.
Im still working on that, I just finished the player and backpack. I use react for it, maybe do something that depends for what item needed for it like if item dragg is glasses == glasses
 

Freedom

Administrator
God VIP
Apr 21, 2022
119
22
18
Credits
26,945
Im still working on that, I just finished the player and backpack. I use react for it, maybe do something that depends for what item needed for it like if item dragg is glasses == glasses
OKe nice :) you i have on thes moment 1 slot the need to put a Bag item in it then the can use the slots of a backpack only stugling with the part of a filter that says your not a bag so go back to the old slot you can from.

tryed
revert stop start for it (jquery) and the moment it works i can duplicate items with it so its a headkiller for now.

 

xTomatomanx

Active member
Jun 4, 2023
74
8
8
Credits
2,291
OKe nice :) you i have on thes moment 1 slot the need to put a Bag item in it then the can use the slots of a backpack only stugling with the part of a filter that says your not a bag so go back to the old slot you can from.

tryed
revert stop start for it (jquery) and the moment it works i can duplicate items with it so its a headkiller for now.

Code:
<a href="https://ibb.co/6sJ48dQ"><img src="https://i.ibb.co/6sJ48dQ/inv.png" alt="inv" border="0"></a>
you mean the find slot available? I updating my items realtime with database using fetch in react so it wont had duplications.
 

Freedom

Administrator
God VIP
Apr 21, 2022
119
22
18
Credits
26,945
you mean the find slot available? I updating my items realtime with database using fetch in react so it wont had duplications.
Oke thats a good one. i really need to look in to react you can do so mutch more with it only then i need to convert it and that will be a pain xD
 

Users who are viewing this thread

  • FAKY
Top