rebel1324 / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.net
MIT License
65 stars 31 forks source link

Clip1() in nshud #316

Closed dartunian closed 3 years ago

dartunian commented 5 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 Clip1() is not active, script errors

SleepyMode commented 4 years ago

Consider opening a pull request.