• Lua attempt to get SOME VALUE but it's nill. The fact is it's not supposed to it
    1 replies, posted
attempt to call method 'GetPrimaryAmmoType' (a nil value) I'm making an HUD and of course at some point i get the ammo count of the player. But the fact is that it's in a "if LocalPlayer():Alive() then" loop and it's not supposed to try to get it when player is dead but it does so it print errors in client console because 'Ammo' is nil when a player is dead.
We need to see way more code if you want us to try and help you.
Sorry, you need to Log In to post a reply to this thread.