Jump to content

ما الخطأ


Recommended Posts

ما فهمت اخوي قصدك

المهم ذي اللوحه وش اسم الزر الي احطه؟

GUIEditor = {

button = {},

window = {}

}

addEventHandler("onClientResourceStart", resourceRoot,

function()

GUIEditor.window[1] = guiCreateWindow(381, 293, 513, 273, "لوحه التحكم", false)

guiWindowSetSizable(GUIEditor.window[1], false)

GUIEditor.button[1] = guiCreateButton(77, 40, 199, 60, "تشغيل الطيران", false, GUIEditor.window[1])

GUIEditor.button[2] = guiCreateButton(77, 121, 199, 60, "ايقاف الطيران", false, GUIEditor.window[1])

end

)

Link to comment

GUIEditor = { 
button = {}, 
window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
GUIEditor.window[1] = guiCreateWindow(381, 293, 513, 273, "لوحه التحكم", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.button[1] = guiCreateButton(77, 40, 199, 60, "تشغيل الطيران", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(77, 121, 199, 60, "ايقاف الطيران", false, GUIEditor.window[1])  
end 
) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[2] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", false ) 
          end 
    end 
 ) 
Link to comment

GUIEditor = { 
button = {}, 
window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
GUIEditor.window[1] = guiCreateWindow(381, 293, 513, 273, "لوحه التحكم", false) 
guiSetVisible ( GUIEditor.window[1],false ) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.button[1] = guiCreateButton(77, 40, 199, 60, "تشغيل الطيران", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(77, 121, 199, 60, "ايقاف الطيران", false, GUIEditor.window[1]) 
end 
) 
  
bindKey ('F6','down', 
 function (  ) 
if guiGetVisible ( GUIEditor.window[1] ) == false then 
 guiSetVisible ( GUIEditor.window[1],true ) 
 showCursor ( true ) 
    else 
 guiSetVisible (  GUIEditor.window[1],false ) 
 showCursor ( false ) 
              end 
      end 
  ) 
  
addEventHandler ("onClientGUIClick",resourceRoot, function (  ) 
 if ( source == GUIEditor.button[2] ) then 
  setWorldSpecialPropertyEnabled ( "aircars", false ) 
          end 
    end 
 ) 

آضغط اف6

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...