Diverge Networks
Implement a script that displays an image of the map. - Printable Version

+- Diverge Networks (https://divergenetworks.com/forums)
+-- Forum: 1980s Mafia Roleplay (https://divergenetworks.com/forums/forumdisplay.php?fid=4)
+--- Forum: Suggestions (https://divergenetworks.com/forums/forumdisplay.php?fid=6)
+---- Forum: Denied (https://divergenetworks.com/forums/forumdisplay.php?fid=8)
+---- Thread: Implement a script that displays an image of the map. (/showthread.php?tid=4962)



Implement a script that displays an image of the map. - Votra - 12-11-2022

Code:
-- Create a new frame to hold the image
local frame = vgui.Create( "DFrame" )
frame:SetSize( 400, 300 )
frame:SetTitle( "Image" )
frame:SetVisible( true )
frame:SetDraggable( true )
frame:ShowCloseButton( true )
frame:Center()

-- Load the image and set it as the background of the frame
local image = vgui.Create( "DImage", frame )
image:SetPos( 25, 50 )
image:SetSize( 350, 200 )
image:SetImage( "your/image/path.png" )

At image:SetImage( "your/image/path.png" )
Upload this photo of a map to the server via FTP: https://cdn.discordapp.com/attachments/847258831838117909/1004259272047210586/union_map_final.png
Then place its path in those quotations.


RE: Implement a script that displays an image of the map. - Pendred - 12-11-2022

There already is one

F1 ---> Help ---> Map


RE: Implement a script that displays an image of the map. - CharlesSKS - 12-11-2022

Or just learn the map…


RE: Implement a script that displays an image of the map. - Canadian-bacon - 12-11-2022

Appreciate the thought but as pendred said you can access a map ingame already.

Moving this to denied