• 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 (1 Viewer)

suldmn

Active member
Apr 5, 2023
74
25
18
Credits
4,087
lol... do it your self xD you selling so then make it. not asking ppl and then sell shit xD
also only body en head dmg are working if i look @ this otherwise you need to send the damage scripts with it aka Ir_skeleton
Sorry bro , When i do my personal shit , i will focus on this
 

suldmn

Active member
Apr 5, 2023
74
25
18
Credits
4,087
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; });
Thank you bro . .
 

Users who are viewing this thread

Top