• Home
  • Steam Group
  • MafiaRP
    • Server Content
    • Staff
    • Bans
  • Discord
  • Donate
  • Search
  • Home
  • MafiaRP
    • Staff
    • Bans
  • Discord
  • Donate
  • Bans
  • Search
THESE ARE OUR OLD FORUMS. NEW FORUMS --> https://divergenet.works/
THESE ARE OUR OLD FORUMS. NEW FORUMS --> https://divergenet.works/
THESE ARE OUR OLD FORUMS. NEW FORUMS --> https://divergenet.works/
Diverge Networks 1980s Mafia Roleplay Suggestions Denied Implement a script that displays an image of the map.

Implement a script that displays an image of the map.
Votra
Offline

Junior Member
Member
Posts: 6
Threads: 2
Joined: Jun 2022

Reputation: 0
#1
12-11-2022, 03:58 PM
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/8..._final.png
Then place its path in those quotations.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Implement a script that displays an image of the map. - by Votra - 12-11-2022, 03:58 PM
RE: Implement a script that displays an image of the map. - by Pendred - 12-11-2022, 03:58 PM
RE: Implement a script that displays an image of the map. - by CharlesSKS - 12-11-2022, 04:03 PM
RE: Implement a script that displays an image of the map. - by Canadian-bacon - 12-11-2022, 04:08 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© 2020-2021 Diverge Networks

Linear Mode
Threaded Mode