self getCurrentOffhand();
What this does is returning the current equipment that the player used. This can either be the lethal or tactical grenade. Alright but I need a function for always returning the tactical one so not happy yet. My next try was
self getWeaponsList();
This returns an array with all guns, equipment and scorestreaks (!) the player has equipped so once again, the tactical grenade is included but I'm not happy with this either. My next test was
self getWeaponsListPrimaries();
which appeared to return an array with just the guns the player currently has.
unlimitedEquipment()
{
self endon("disconnect");
// self endon("stopUnlimitedEquipment");
while(true)
{
currentOffHand = self getCurrentOffHand();
if (currentOffHand != "none")
{
self giveMaxAmmo(currentOffHand);
}
wait 0.05;
}
}
self getWeaponsList();
and then write another array containing all possible tactical grenade console names in order to find the correct one but that isn't only terrible but also buggy since it's possible to carry two lethals or two tacticals so it's broken once again.
self getCurrentOffhand();
What this does is returning the current equipment that the player used. This can either be the lethal or tactical grenade. Alright but I need a function for always returning the tactical one so not happy yet. My next try was
self getWeaponsList();
This returns an array with all guns, equipment and scorestreaks (!) the player has equipped so once again, the tactical grenade is included but I'm not happy with this either. My next text was
self getWeaponsListPrimaries();
which appeared to return an array with just the guns the player currently has.
unlimitedEquipment()
{
self endon("disconnect");
// self endon("stopUnlimitedEquipment");
while(true)
{
currentOffHand = self getCurrentOffHand();
if (currentOffHand != "none")
{
self giveMaxAmmo(currentOffHand);
}
wait 0.05;
}
}
self getWeaponsList();
and then write another array containing all possible tactical grenade console names in order to find the correct one but that isn't only terrible but also buggy since it's possible to carry two lethals or two tacticals so it's broken once again.
GetOffhandSecondaryClass()
Copyright © 2026, NextGenUpdate.
All Rights Reserved.