Hey I have the code, can you make me a working gui with buttons?
Here is the code;
GUIEditor = {
checkbox = {},
button = {},
edit = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
-- This is Login button --
GUIEditor.button[1] = guiCreateButton(562, 662, 180, 43, "Login", false)
guiSetAlpha(GUIEditor.button[1], 0.00)
-- register button --
GUIEditor.button[2] = guiCreateButton(562, 719, 185, 41, "Register", false)
guiSetAlpha(GUIEditor.button[2], 0.00)
-- Check box for 'Remember me' --
GUIEditor.checkbox[1] = guiCreateCheckBox(659, 611, 21, 19, "", true, false)
guiSetAlpha(GUIEditor.checkbox[1], 0.00)
-- This is where you type your username --
GUIEditor.edit[1] = guiCreateEdit(536, 476, 226, 42, "", false)
-- This is where you type your password --
GUIEditor.edit[2] = guiCreateEdit(536, 555, 226, 42, "", false)
end
)
addEventHandler("onClientRender", root,
function()
dxDrawImage(1, 3, 1920, 1200, ":guieditor/images/login.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(291, 139, 0, 0, ":guieditor/images/login.png", 0, 0, 0, tocolor(255, 255, 255, 255), true)
end
)