Theme editor

  • If you experience issues login with Discord, reset your password and wait 3 minutes for the email!

QBCORE NoPixel 4.0 Inventory | FREE

Thread owner
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
 
Thread owner
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 . .
 
Back
Top Bottom