Showing an picture

Hello!
I’m currently working on something, i’d like to show a picture in few conditions,
That’s what i already did:

CLIENT SIDE



local myscrw, myscrh = 1920, 1080
 
function SizeW(width)
        local screenwidth = myscrw
        return width*ScrW()/screenwidth
end
 
function SizeH(height)
        local screenheight = myscrh
        return height*ScrH()/screenheight
end
 
function SizeWH(width, height)
        local screenwidth = myscrw
        local screenheight = myscrh
        return width*ScrW()/screenwidth, height*ScrH()/screenheight
end  
 
 
        local h, w = SizeH(100), SizeW(500) -- height and width of logo respectively
        local x = (ScrW()/2) - (w/2)  -- x pos
		local y = ScrH() - (h + SizeH(800))        local a = 250 --alpha value
       
        local logo = Material( "jailbreak/lastguard.png" ) -- material file path
 
        hook.Add( "HUDPaint", "logo", function()
        surface.SetDrawColor(Color(255,255,255,a))
        surface.SetMaterial( logo )
        surface.DrawTexturedRect(x,y,w,h)      
end)

SERVERSIDE


hook.Add( "PlayerSay", "lastguard", function( ply, text, public )
	text = string.lower( text )
	if ( text == "/lastguard" ) then
	for _, p in pairs( player.GetAll() ) do
			p:ConCommand( "play jailbreak/lastguard.mp3" )
			-- SHOW PICTURE UNTILL THE END OF THE ROUND
			end
		return ""
	end
end )

I’d like to know how to show the picture, thanks! :smiley:

Shouldn’t that already draw the picture? - also dont forget to send the picture to the client.

Thats what i meant, how to send it when they type /lastguard?

dadada