ابي الماوس يظهر اول ما يشتغل المود ذا
كود
GUIEditor = {
staticimage = {},
edit = {},
}
button = {}
GUIEditor.staticimage[1] = guiCreateStaticImage(388, 185, 560, 484, ":guI/images/examples/logo.png", false)
GUIEditor.staticimage[2] = guiCreateStaticImage(14, 88, 110, 86, ":guI/images/login.png", false, GUIEditor.staticimage[1])
GUIEditor.staticimage[4] = guiCreateStaticImage(14, 256, 110, 86, ":guI/images/login.png", false, GUIEditor.staticimage[1])
GUIEditor.edit[1] = guiCreateEdit(139, 127, 325, 43, "", false, GUIEditor.staticimage[1])
GUIEditor.edit[2] = guiCreateEdit(139, 289, 325, 43, "", false, GUIEditor.staticimage[1])
GUIEditor.staticimage[5] = guiCreateStaticImage(100, 0, 392, 124, ":guI/images/user.png", false, GUIEditor.staticimage[1])
GUIEditor.staticimage[6] = guiCreateStaticImage(139, 180, 326, 109, ":guI/images/pass.png", false, GUIEditor.staticimage[1])
GUIEditor.staticimage[7] = guiCreateStaticImage(38, 364, 133, 111, ":guI/images/password.png", false, GUIEditor.staticimage[1])
button.login = guiCreateButton(-0.32, -0.40, 2.26, 1.72, "", true, GUIEditor.staticimage[7])
guiSetAlpha(button.login, 0.00)
GUIEditor.staticimage[8] = guiCreateStaticImage(397, 363, 131, 111, ":guI/images/regsiter.png", false, GUIEditor.staticimage[1])
button.register = guiCreateButton(-22, -6, 258, 155, "", false, GUIEditor.staticimage[8])
guiSetAlpha(button.register, 0.00)
function onGuiClick (button, state, absoluteX, absoluteY)
if (source == button.register) then
triggerServerEvent ( "onLogin", getRootElement(), getLocalPlayer(), guiGetText(Edit_User), guiGetText(Edit_Pass) )
end
end
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
function onGuiClick (button, state, absoluteX, absoluteY)
if (source == button.login) then
triggerServerEvent ( "onReg", getRootElement(), getLocalPlayer(), guiGetText(Edit_User), guiGetText(Edit_Pass) )
end
end
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
addEventHandler ("onClientGUIClick", getRootElement(),
function(button, state, absoluteX, absoluteY)
if ( source == GUIEditor_Button[2] ) then
triggerServerEvent("GUIEditor_Button[2]",getLocalPlayer())
guiSetVisible ( GUIEditor.staticimage[1] ,false )
showCursor (false )
guiSetInputEnabled(false)
end
end
)