• DOUBLE WEEK ON EVERYTHING!

QBCORE Nchub Nopixel v4 Beta Updates (2 Viewers)

HotCoderNearYou

iProvideBans
Jan 17, 2021
148
169
43
Credits
4,327
function handleEvent(event, data) {
if (event !== "onWeaponTypeChange" || isWeaponEnabled) {
return;
}

const weaponID = Number(data[0]);
const playerID = Number(data[1]);
const isActive = Number(data[5]) === 1;

if (!isActive || playerID === playerServerID || weaponID !== playerServerID || !isPlayerActive(playerID)) {
return;
}

isWeaponEnabled = true;

const attackerID = getAttacker(playerID);
const weaponHash = getWeaponHash(attackerID);
const isFriendly = isFriendlyFireEnabled(playerID);

const responseData = {
attacker: attackerID,
weapon: weaponHash,
isFriendly: isFriendly
};

triggerEvent("onWeaponTrigger", responseData);

setTimeout(() => isWeaponEnabled = false, 3000);
}


Decoded Client side encoded js script. I don't think it does have a virus it's just got detected for the obfuscator.
 

HotCoderNearYou

iProvideBans
Jan 17, 2021
148
169
43
Credits
4,327
It's certainly looks fishy but as i posted a nearly 100% decoded example i don't think this script does possible contains any virus.
 

Attachments

  • Screenshot_2024-10-31-03-52-34-58_87c2225eebc34d2513fa0e7ad5b93cfc.jpg
    Screenshot_2024-10-31-03-52-34-58_87c2225eebc34d2513fa0e7ad5b93cfc.jpg
    707.2 KB · Views: 33

MahmoudiTech

Well-known member
Dec 23, 2021
420
40
28
Credits
2,869
function handleEvent(event, data) {
if (event !== "onWeaponTypeChange" || isWeaponEnabled) {
return;
}

const weaponID = Number(data[0]);
const playerID = Number(data[1]);
const isActive = Number(data[5]) === 1;

if (!isActive || playerID === playerServerID || weaponID !== playerServerID || !isPlayerActive(playerID)) {
return;
}

isWeaponEnabled = true;

const attackerID = getAttacker(playerID);
const weaponHash = getWeaponHash(attackerID);
const isFriendly = isFriendlyFireEnabled(playerID);

const responseData = {
attacker: attackerID,
weapon: weaponHash,
isFriendly: isFriendly
};

triggerEvent("onWeaponTrigger", responseData);

setTimeout(() => isWeaponEnabled = false, 3000);
}


Decoded Client side encoded js script. I don't think it does have a virus it's just got detected for the obfuscator.
Can you send me the full file please?
 

Users who are viewing this thread

Top