Guest User

Lua

a guest
May 4th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | None | 0 0
  1. createMarker(-1988.8000488281, 139.80000305176, 26.60000038147, "cylinder", )
  2.  
  3. function =
  4. GUIEditor = {
  5.     button = {},
  6.     window = {}
  7. }
  8. GUIEditor.window[1] = guiCreateWindow(550, 112, 208, 275, "Lockführer", false)
  9. guiWindowSetSizable(GUIEditor.window[1], false)
  10.  
  11. GUIEditor.button[1] = guiCreateButton(11, 232, 83, 33, "Annehmen", false, GUIEditor.window[1])
  12. GUIEditor.button[2] = guiCreateButton(115, 232, 83, 33, "Schließen", false, GUIEditor.window[1])
  13. GUIEditor.button[3] = guiCreateButton(12, 22, 176, 58, "Lockführer von Los Santos nach San Fierro , 900€", false, GUIEditor.window[1])
  14. GUIEditor.button[4] = guiCreateButton(12, 90, 176, 58, "Coming Soon", false, GUIEditor.window[1])
  15. GUIEditor.button[5] = guiCreateButton(12, 158, 176, 58, "Coming Soon", false, GUIEditor.window[1])
  16.  
  17. addEventHandler("onClientGUIClick", GUIEditor.button[2], function(button,state)
  18.             if button == "left" then
  19.                 guiSetVisible(GUIEditor.window[1],false)
  20.                 showCursor(false)
  21.                
  22.             end
  23.            
  24.            
  25. function guiToggleVisible ( )        
  26.         if ( guiGetVisible ( markerzumjob ) == true ) then -- check if the gui element is visible              
  27.                 guiSetVisible ( markerzumjob, false ) -- if it is, we hide it
  28.         else              
  29.                 guiSetVisible ( markerzumjob, true ) -- if not, we make it visible
  30.         end
  31.  
  32.        
  33. function show_GUIEditor_Window ()
  34.     local IsWindowVisible = guiGetVisible(GUIEditor_Window[1])
  35.     if (IsWindowVisible == true) then
  36.         guiSetVisible(GUIEditor_Window[1], false)
  37.         guiSetInputEnabled(false)
  38.         showCursor(false)
  39.     end
  40.     if (IsWindowVisible == false) then
  41.         guiSetVisible(GUIEditor_Window[1], true)
  42.         guiSetInputEnabled(true)
  43.         showCursor(true)
  44.     end    
  45. end
Advertisement
Add Comment
Please, Sign In to add comment