Saltyq Posted August 19, 2017 Share Posted August 19, 2017 (edited) I found this bug in the .NET Scripthook earlier. Any Assault rifle in game does not show up under WeaponGroup.AssaultRifle, rather as "970310034". Which is really odd considering ScriptHookV.NET's WeaponGroup has: AssaultRifle = 970310034u, Anyway, if you run into this problem during a check i.e if (weapon.Group == WeaponGroup.AssaultRifle) { } then replace WeaponGroup.AssaultRifle with (WeaponGroup)970310034 This works for me, for now. Edited August 19, 2017 by FIFSA Link to comment Share on other sites More sharing options...
kagikn Posted August 20, 2017 Share Posted August 20, 2017 (edited) Oops, I didn't think SHVDN v2 had this bug (I'd added WeaponGroup enums), will make a PR for fix on its GitHub repo. Edited August 20, 2017 by kagikn sollaholla and aimless 2 Link to comment Share on other sites More sharing options...
kagikn Posted August 27, 2017 Share Posted August 27, 2017 Okay, this issue was solved in this PR. https://github.com/crosire/scripthookvdotnet/pull/676 You gonna be able to use WeaponGroup.AssaultRifle properly in v2.10.2 (or later). sollaholla 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now