I’m new with lua and this is my first project. Essentially I am trying to make my weapon ammo show up as individual bullets such as in Gears of War. I’m not sure why my code isn’t showing up on my HUD. Any help is greatly appreciated, thanks!
bullet = surface.GetTextureID( “VGUI/ammobar” );
local client = LocalPlayer();
local howManyLoops = client:Clip1();
for i=1,howManyLoops do surface.SetTexture( bullet ); surface.SetDrawColor(255,255,225,255); surface.DrawTexturedRect(ScrW()-(i*5), 36, 128, 128); end