Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUIEditor3_Window = {}
- GUIEditor3_TabPanel = {}
- GUIEditor3_Tab = {}
- GUIEditor3_Button = {}
- GUIEditor3_Memo = {}
- GUIEditor3_Label = {}
- GUIEditor3_Edit = {}
- GUIEditor3_Image = {}
- local screenWidth, screenHeight = guiGetScreenSize()
- local windowWidth, windowHeight = 660, 500
- local left = screenWidth/2 - windowWidth/2
- local top = screenHeight/2 - windowHeight/2
- GUIEditor3_Window[1] = guiCreateWindow(left, top, windowWidth, windowHeight,"Escolha sua classe",false)
- guiSetAlpha(GUIEditor3_Window[1],1)
- guiWindowSetSizable(GUIEditor3_Window[1],false)
- GUIEditor3_Button[1] = guiCreateButton(164,39,103,94,"",false,GUIEditor3_Window[1])
- guiSetProperty(GUIEditor3_Button[1],"AlwaysOnTop","true")
- GUIEditor3_Image[1] = guiCreateStaticImage(8,7,86,79,"images/icons/PoliceIcon.png",false,GUIEditor3_Button[1])
- guiSetAlpha(GUIEditor3_Image[1],1)
- guiMoveToBack(GUIEditor_Image[1])
- GUIEditor3_Button[2] = guiCreateButton(164,153,103,94,"",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Button[2],1)
- guiSetProperty(GUIEditor3_Button[2],"AlwaysOnTop","true")
- GUIEditor3_Image[2] = guiCreateStaticImage(7,6,88,82,"images/icons/ArmyIcon.png",false,GUIEditor3_Button[2])
- guiSetAlpha(GUIEditor3_Image[2],1)
- guiMoveToBack(GUIEditor_Image[2])
- GUIEditor3_Button[3] = guiCreateButton(164,268,103,94,"",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Button[3],1)
- guiSetProperty(GUIEditor3_Button[3],"AlwaysOnTop","true")
- GUIEditor3_Image[3] = guiCreateStaticImage(8,7,87,79,"images/icons/MedicIcon.png",false,GUIEditor3_Button[3])
- guiSetAlpha(GUIEditor3_Image[3],1)
- guiMoveToBack(GUIEditor_Image[3])
- GUIEditor3_Button[4] = guiCreateButton(164,384,103,90,"",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Button[4],1)
- guiSetProperty(GUIEditor3_Button[4],"AlwaysOnTop","true")
- GUIEditor3_Image[4] = guiCreateStaticImage(36,6,28,78,"images/icons/SurvivorIcon.png",false,GUIEditor3_Button[4])
- guiSetAlpha(GUIEditor3_Image[4],1)
- guiMoveToBack(GUIEditor_Image[4])
- GUIEditor3_Label[1] = guiCreateLabel(281,395,68,21,"Civil",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[1],1)
- guiLabelSetColor(GUIEditor3_Label[1],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[1],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[1],"left",false)
- guiSetFont(GUIEditor3_Label[1],"default-bold-small")
- GUIEditor3_Label[2] = guiCreateLabel(281,417,339,46,"Escolhendo esta classe, voce aparecera sempre no Glen Park.\nPossui armas exclusivas e acesso facil a veiculos de varios \ntipos.",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[2],1)
- guiLabelSetColor(GUIEditor3_Label[2],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[2],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[2],"left",false)
- GUIEditor3_Label[3] = guiCreateLabel(281,52,77,21,"Policia Local",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[3],1)
- guiLabelSetColor(GUIEditor3_Label[3],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[3],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[3],"left",false)
- guiSetFont(GUIEditor3_Label[3],"default-bold-small")
- GUIEditor3_Label[4] = guiCreateLabel(281,74,340,49,"Escolhendo esta classe, voce aparecera sempre na delegacia.\nPossui armas exclusivas e acesso facil a carros de policia e \nequipamentos da S.W.A.T.",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[4],1)
- guiLabelSetColor(GUIEditor3_Label[4],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[4],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[4],"left",false)
- GUIEditor3_Label[5] = guiCreateLabel(281,168,77,21,"Exercito",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[5],1)
- guiLabelSetColor(GUIEditor3_Label[5],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[5],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[5],"left",false)
- guiSetFont(GUIEditor3_Label[5],"default-bold-small")
- GUIEditor3_Label[6] = guiCreateLabel(281,188,337,48,"Escolhendo esta classe, voce aparecera sempre na Area 69.\nPossui armas exclusivas e acesso facil a carros e helicopteros\nde propriedade do exercito.",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[6],1)
- guiLabelSetColor(GUIEditor3_Label[6],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[6],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[6],"left",false)
- GUIEditor3_Label[7] = guiCreateLabel(281,280,77,21,"Paramedico",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[7],1)
- guiLabelSetColor(GUIEditor3_Label[7],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[7],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[7],"left",false)
- guiSetFont(GUIEditor3_Label[7],"default-bold-small")
- GUIEditor3_Label[8] = guiCreateLabel(281,302,329,48,"Escolhendo esta classe, voce aparecera sempre no Hospital.\nPossui armas exclusivas, pode curar e possui acesso facil a \nveiculos medicos.",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Label[8],1)
- guiLabelSetColor(GUIEditor3_Label[8],255,255,255)
- guiLabelSetVerticalAlign(GUIEditor3_Label[8],"top")
- guiLabelSetHorizontalAlign(GUIEditor3_Label[8],"left",false)
- GUIEditor3_Image[5] = guiCreateStaticImage(33,47,114,40,"images/guns/m4.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[5],1)
- GUIEditor3_Image[6] = guiCreateStaticImage(33,86,114,40,"images/guns/deagle.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[6],1)
- GUIEditor3_Image[7] = guiCreateStaticImage(33,159,114,40,"images/guns/m4.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[7],1)
- GUIEditor3_Image[8] = guiCreateStaticImage(33,199,114,40,"images/guns/deagle.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[8],1)
- GUIEditor3_Image[9] = guiCreateStaticImage(33,278,114,40,"images/guns/shotgun.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[9],1)
- GUIEditor3_Image[10] = guiCreateStaticImage(33,310,114,40,"images/guns/deagle.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[10],1)
- GUIEditor3_Image[11] = guiCreateStaticImage(33,387,114,40,"images/guns/ak47.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[11],1)
- GUIEditor3_Image[12] = guiCreateStaticImage(33,429,114,40,"images/guns/deagle.png",false,GUIEditor3_Window[1])
- guiSetAlpha(GUIEditor3_Image[12],1)
- guiSetVisible ( GUIEditor3_Window[1], false )
- local localPlayer = getLocalPlayer ( )
- local playername = getPlayerName(localPlayer)
- function windowTeamHandler( )
- guiSetVisible ( GUIEditor3_Window[1], true )
- guiSetInputEnabled(true)
- showCursor ( true )
- end
- addEvent( "windowTeamHandler", true )
- addEventHandler( "windowTeamHandler", getRootElement(), windowTeamHandler )
- function onClickBtn ( button, state )
- if (source == GUIEditor3_Button[1]) then
- triggerServerEvent ( "onProceedTeam", getRootElement(), localPlayer, "police" )
- end
- end
- function onClickBtn2 ( button, state )
- if (source == GUIEditor3_Button[2]) then
- triggerServerEvent ( "onProceedTeam", getRootElement(), localPlayer, "army" )
- end
- end
- function onClickBtn3 ( button, state )
- if (source == GUIEditor3_Button[3]) then
- triggerServerEvent ( "onProceedTeam", getRootElement(), localPlayer, "medic" )
- end
- end
- function onClickBtn4 ( button, state )
- if (source == GUIEditor3_Button[4]) then
- triggerServerEvent ( "onProceedTeam", getRootElement(), localPlayer, "civilian" )
- end
- end
- function hideLoginWindow3()
- guiSetInputEnabled(false)
- guiSetVisible ( GUIEditor3_Window[1], false )
- showCursor ( false )
- end
- addEvent( "hideLoginWindow3", true )
- addEventHandler( "hideLoginWindow3", getRootElement(), hideLoginWindow3 )
- function hideLoginWindowSpawn2()
- guiSetInputEnabled(false)
- guiSetVisible ( GUIEditor_Window[1], false )
- showCursor ( false )
- triggerServerEvent ( "onPlayerSpawn", player, player )
- end
- addEvent( "hideLoginWindowSpawn2", true )
- addEventHandler( "hideLoginWindowSpawn2", getRootElement(), hideLoginWindowSpawn2 )
- addEventHandler ( "onClientGUIClick", GUIEditor3_Button[1], onClickBtn, false )
- addEventHandler ( "onClientGUIClick", GUIEditor3_Button[2], onClickBtn2, false )
- addEventHandler ( "onClientGUIClick", GUIEditor3_Button[3], onClickBtn3, false )
- addEventHandler ( "onClientGUIClick", GUIEditor3_Button[4], onClickBtn4, false )
Advertisement
Add Comment
Please, Sign In to add comment