Sign in to follow this  

[C#] NAPI.Player.GetPlayerWeapons - Broken?

Recommended Posts

Hi folks - So I've been developing a fork of WiredPlayers and I'm ironing out various issues with it at the moment.

WeaponHash[] playerWeaps = NAPI.Player.GetPlayerWeapons(player);

foreach (WeaponHash playerWeap in playerWeaps)

No matter how I interpret the WeaponHash, the server will crash blaming the foreach statement.

I feel the issue lies in GetPlayerWeapons, has anyone found a workaround for this?



PS - Would have bugtracked, but have no access.

Edited by Lee

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.