• Script error in hud on deathrun after gmod update
    2 replies, posted
draw.NoTexture() surface.SetDrawColor( 0, 0, 0, 200 ) surface.DrawPoly( self.SpecInfo ) surface.DrawPoly( self.HealthInfo ) self.CurHealth = math.Clamp(Lerp( 0.05, self.CurHealth, ((LocalPlayer():GetObserverTarget() != nil) and LocalPlayer():GetObserverTarget():Health() or LocalPlayer():Health())), 0 , 100) -- Health bars local x = math.Clamp(math.ceil(self.CurHealth/self.BarH), 0, 18) local y = self.CurHealth/self.BarH for i=1, 18 do surface.SetDrawColor(255, 255, 255, (i > x and 10 or (x == i and (i == y and 255 or (((self.CurHealth)%self.BarH)*(245/self.BarH))+10)))) surface.DrawPoly( self.HealthBar[i] ) end For some reason after gmod update I am getting a script error with the code above in hud for health bar in death run. Any ideas why it is doing that looking at the code above? Appreciate any help... Thanks
What's the error?
Ok... thanks appreciate the help
Sorry, you need to Log In to post a reply to this thread.