- Initiateur de la discussion
A
Ashehess
Têtard
- Messages
- 1
- Score réaction
- 0
- Points
- 5
Bonjour, je chercher à rajouter une image a mon hud (par ex : un cœur pour la barre de vie) on m'a parler de materials etc...
code :
local health = Material( "materials/health.png" )
surface.SetMaterial( health )
surface.SetDrawColor( 255, 255, 255, 255 )
surface.DrawTexturedRect( ScrW() - 512, 0, 512, 256, 0 )
hook.Add( "HUDPaint", "HUDPaint_DrawATexturedBox", "hud" function()
end)
code :
local health = Material( "materials/health.png" )
surface.SetMaterial( health )
surface.SetDrawColor( 255, 255, 255, 255 )
surface.DrawTexturedRect( ScrW() - 512, 0, 512, 256, 0 )
hook.Add( "HUDPaint", "HUDPaint_DrawATexturedBox", "hud" function()
end)