forked from Mythikos/gmod-flood-2.0
Opti
This commit is contained in:
parent
514c83e685
commit
d2f539b2b9
@ -137,7 +137,7 @@ function GM:HUDPaint()
|
||||
-- Display Prop's Health
|
||||
local tr = util.TraceLine(util.GetPlayerTrace(LocalPlayer()))
|
||||
if tr.Entity:IsValid() and not tr.Entity:IsPlayer() then
|
||||
if tr.Entity:GetNWInt("CurrentPropHealth") == "" or tr.Entity:GetNWInt("CurrentPropHealth") == nil or tr.Entity:GetNWInt("CurrentPropHealth") == NULL then
|
||||
if tr.Entity:GetNWInt("CurrentPropHealth") == "" or tr.Entity:GetNWInt("CurrentPropHealth") == nil then
|
||||
draw.SimpleText("Fetching Health", "Flood_HUD_Small", x * 0.5, y * 0.5 - 25, color_white, 1, 1)
|
||||
elseif(tr.Entity:GetNWInt("CurrentPropHealth")!="0")then
|
||||
draw.SimpleText("Health: " .. tr.Entity:GetNWInt("CurrentPropHealth"), "Flood_HUD_Small", x * 0.5, y * 0.5 - 25, color_white, 1, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user