Closed dartunian closed 3 years ago
https://github.com/rebel1324/NutScript/blob/62dfb37cd155f3766d6ad6acf1bcdc3b3f493794/plugins/nshud/sh_plugin.lua#L44
from if (weapon.GetClass(weapon) ~= "weapon_slam" and clip > 0 or count > 0) then to if (clip and weapon.GetClass(weapon) ~= "weapon_slam" and clip > 0 or count > 0) then
if (weapon.GetClass(weapon) ~= "weapon_slam" and clip > 0 or count > 0) then
if (clip and weapon.GetClass(weapon) ~= "weapon_slam" and clip > 0 or count > 0) then
if Clip1() is not active, script errors
Clip1()
Consider opening a pull request.
https://github.com/rebel1324/NutScript/blob/62dfb37cd155f3766d6ad6acf1bcdc3b3f493794/plugins/nshud/sh_plugin.lua#L44
from
if (weapon.GetClass(weapon) ~= "weapon_slam" and clip > 0 or count > 0) then
toif (clip and weapon.GetClass(weapon) ~= "weapon_slam" and clip > 0 or count > 0) then
if
Clip1()
is not active, script errors