Chessnut / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.rocks
MIT License
94 stars 77 forks source link

Weapons do not work ns1.1 #829

Open outermostcbro opened 5 years ago

outermostcbro commented 5 years ago

Hello I have coded on Nutscript 1.1 and are getting an issue, the issue being that upon coding weapons they show up but there is no use button only the inventory button. This has gotten to be an issue with my community as even the sample AR2 weapon that is included does not work. I have done everything to try and solve this issue. I have the weapons coded and nothing happens. I have also seen this issue become prevalent in new and upcoming Garry's Mod Communities which are leaving devs clueless on what to do?

The Weapon scripts that are used as the sample do not even work with the main frame work.

[ERROR] gamemodes/sample/schema/sv_hooks.lua:23: attempt to index global 'WEAPON_REQSKILLS' (a nil value)

  1. unknown - gamemodes/sample/schema/sv_hooks.lua:23
    1. Run - gamemodes/nutscript/gamemode/core/libs/sh_plugin.lua:428
    2. unknown - gamemodes/nutscript/gamemode/core/libs/sh_item.lua:657
      1. func - gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_netstream2.lua:117
      2. unknown - lua/includes/extensions/net.lua:32