Jump to content

[HELP] Updates Panel GUI


xXGhostXx

Recommended Posts

local x,y = guiGetScreenSize()
local window = guiCreateWindow( (x-550)/2, (y-600)/2, 500, 600, "Updates", false )
local text = guiCreateMemo( 10, 30, 530, 526, "", false, window )
guiMemoSetReadOnly(text, true)
guiSetVisible(window,false)
local closeButton = guiCreateButton(420,560,110,30,"Close",false,window)
addEventHandler("onClientGUIClick",closeButton,function() 
    guiSetVisible(window, false)
    showCursor(false)
end)

local File = fileOpen("updates.txt", true)
local Text = fileRead(File, 10000)
guiSetText(text,Text)

function updatesList( )
    guiSetVisible(window, not guiGetVisible(window))
    showCursor(not isCursorShowing())
end
addCommandHandler ( "updates", updatesList ) 

function updates ()
    outputChatBox ( "#FF0000(NOTE) #FFA900New updates has been uploaded, use /updates", 255, 255, 255, true )
    end
addCommandHandler("updt", updates)

create updates.txt file

@xXGhostXx

Link to comment
11 hours ago, KnucklesSAEG said:

local x,y = guiGetScreenSize()
local window = guiCreateWindow( (x-550)/2, (y-600)/2, 500, 600, "Updates", false )
local text = guiCreateMemo( 10, 30, 530, 526, "", false, window )
guiMemoSetReadOnly(text, true)
guiSetVisible(window,false)
local closeButton = guiCreateButton(420,560,110,30,"Close",false,window)
addEventHandler("onClientGUIClick",closeButton,function() 
    guiSetVisible(window, false)
    showCursor(false)
end)

local File = fileOpen("updates.txt", true)
local Text = fileRead(File, 10000)
guiSetText(text,Text)

function updatesList( )
    guiSetVisible(window, not guiGetVisible(window))
    showCursor(not isCursorShowing())
end
addCommandHandler ( "updates", updatesList ) 

function updates ()
    outputChatBox ( "#FF0000(NOTE) #FFA900New updates has been uploaded, use /updates", 255, 255, 255, true )
    end
addCommandHandler("updt", updates)

create updates.txt file

@xXGhostXx

Thanks .

Server side ?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...