Jump to content

a small function


Leo Messi

Recommended Posts

Hello today I've created a script just for test.

I need help with something which is; 

Once I click near the static image it will load another static image, just like CITtransport if any one knows it.

GUIEditor = {
    button = {},
    window = {},
    staticimage = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
local screenW, screenH = guiGetScreenSize()
        GUIEditor.window[1] = guiCreateWindow((screenW - 489) / 2, (screenH - 328) / 2, 489, 328, "a script.", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.staticimage[1] = guiCreateStaticImage(230, 72, 16, 15, "4.png", false, GUIEditor.window[1])
        GUIEditor.button[1] = guiCreateButton(469, 305, 10, 13, "X", false, GUIEditor.window[1])    
    end
)

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...