i used code what you gave me, but whatever:
full client:
ScreenLocked = guiCreateWindow(22,175,141,267,"SmartEX C45",false)
guiWindowSetMovable(ScreenLocked,false)
guiWindowSetSizable(ScreenLocked,false)
ImageLocked = guiCreateStaticImage(9,30,123,228,"images/ScreenLocked.jpg",false,ScreenLocked)
ScreenLocked_UnlockImage = guiCreateStaticImage(32,122,59,61,"images/unlock.png",false,ImageLocked)
ScreenLocked_UnlockButton = guiCreateButton(5,194,110,19,"Press to Unlock",false,ImageLocked)
guiSetVisible(ScreenLocked, false)
ScreenMenu = guiCreateWindow(22,175,141,267,"SmartEX C45",false)
guiWindowSetMovable(ScreenMenu,false)
guiWindowSetSizable(ScreenMenu,false)
ImageMenu = guiCreateStaticImage(9,30,123,228,"images/ScreenLocked.jpg",false,ScreenMenu)
ChatButton = guiCreateButton(13,38,111,22,"Chat",false,ScreenMenu)
PhotosButton = guiCreateButton(13,64,111,22,"Photos",false,ScreenMenu)
MusicButton = guiCreateButton(13,89,111,22,"Music",false,ScreenMenu)
MusicButton = guiCreateButton(13,114,111,22,"Internet",false,ScreenMenu)
guiSetVisible(ScreenMenu, false)
ScreenChat = guiCreateWindow(22,175,141,267,"SmartEX C45",false)
guiWindowSetMovable(ScreenChat,false)
guiWindowSetSizable(ScreenChat,false)
ImageChat = guiCreateStaticImage(9,30,123,228,"images/ScreenLocked.jpg",false,ScreenChat)
ChatMemo = guiCreateMemo(16,39,109,150,"",false,ScreenChat)
ChatSend = guiCreateButton(83,194,40,20,"Send",false,ScreenChat)
ChatBack = guiCreateButton(15,233,40,20,"Back",false,ScreenChat)
guiSetVisible(ScreenChat, false)
function showHide()
if guiGetVisible(ScreenLocked)==true then
showCursor(false)
guiSetVisible(ScreenLocked, false)
else
showCursor(true)
guiSetVisible(ScreenLocked, true)
if guiGetVisible(ScreenMenu)==true then
showCursor(false)
guiSetVisible(ScreenLocked, false)
guiSetVisible(ScreenMenu, false)
end
if guiGetVisible(ScreenChat)==true then
showCursor(false)
guiSetVisible(ScreenLocked, false)
guiSetVisible(ScreenChat, false)
end
end
end
bindKey ("f1", "down", showHide)
function funScreenLocked_UnlockButton()
guiSetVisible(ScreenMenu, true)
guiSetVisible(ScreenLocked, false)
end
addEventHandler ( "onClientGUIClick", ScreenLocked_UnlockButton, funScreenLocked_UnlockButton, false )
addEventHandler ( "onClientGUIClick", ScreenLocked_UnlockImage, funScreenLocked_UnlockButton, false )
function funChatButton()
guiSetVisible(ScreenChat, true)
guiSetVisible(ScreenMenu, false)
end
addEventHandler ( "onClientGUIClick", ChatButton, funChatButton, false )
function funChatSend()
text = guiGetText(SendMemo)
triggerServerEvent("send_text",getLocalPlayer(),text)
end
addEventHandler ( "onClientGUIClick", ChatSend, funChatSend, false )
function funChatBack()
guiSetVisible(ScreenMenu, true)
guiSetVisible(ScreenChat, false)
end
addEventHandler ( "onClientGUIClick", ChatBack, funChatBack, false )
full server:
addEvent("send_text",true)
addEventHandler("text",getRootElement(),
function (text)
outputChatBox(getPlayerName(source) ..": ".. tostring(send_text),getRootElement(),255,0,0)
end)