Liberty Unleashed

Scripting => Script Help => Topic started by: IdkanYavuk X on March 03, 2013, 08:19:58 pm

Title: How to display Ammo in real-time?
Post by: IdkanYavuk X on March 03, 2013, 08:19:58 pm
Hello, here's my problem:
I made a custom HUD using weapon sprites, and the ammo display below (just like vanilla), but Ammo does not display correctly; you have to change to another weapon and return to the last one to see the ammo changes, and it does not change in real-time (I've tried using onClientRender, onClientKeyStateChange, lP.WeaponState, etc.), nothing works as expected, I need help.

Thanks and happy killing :)
Title: Re: How to display Ammo in real-time?
Post by: SugarD on March 04, 2013, 12:54:32 am
Hello, here's my problem:
I made a custom HUD using weapon sprites, and the ammo display below (just like vanilla), but Ammo does not display correctly; you have to change to another weapon and return to the last one to see the ammo changes, and it does not change in real-time (I've tried using onClientRender, onClientKeyStateChange, lP.WeaponState, etc.), nothing works as expected, I need help.

Thanks and happy killing :)
That is a known issue we ran into with Argo's scripts, too, when trying to detect weapon hackers. It would be a nice fix if someone were able to update it to work correctly. :)