Jump to content

Check Box Save Statue


Recommended Posts

السلام عليكم

  
  
  
GUIEditor = { 
    label = {} 
} 
  
function build_Dialog() 
    showCursor(true) 
        local screenWidth, screenHeight = guiGetScreenSize() 
        local windowWidth, windowHeight = 157, 234 
        local left = screenWidth/2 - windowWidth/2 
        local top = screenHeight/2 - windowHeight/2 
     
  
  
        Main = guiCreateWindow(left, top, windowWidth, windowHeight, "{I.Q} Lions", false) 
        guiWindowSetSizable(Main, false) 
  
        Exit = guiCreateButton(10, 196, 137, 28, "اغلاق", false, Main) 
        GUIEditor.label[1] = guiCreateLabel(42, 119, 105, 16, "أقصى سرعة للأنذار", false, Main) 
        FullSpeed = guiCreateEdit(10, 135, 137, 17, "150", false, Main) 
        XSpeed = guiCreateCheckBox(9, 24, 138, 16, "صوت اجتياز السرعة", true, false, Main) 
        XHealth = guiCreateCheckBox(9, 50, 138, 16, "صوت احتراق السيارة", true, false, Main) 
        GUIEditor.label[2] = guiCreateLabel(14, 76, 28, 15, "BY:", false, Main) 
        GUIEditor.label[3] = guiCreateLabel(38, 77, 90, 14, "Mr.Mouamle", false, Main)     
end 
function GuiShow ( )         
        if ( guiGetVisible ( Main ) == false ) then -- check if the gui element is visible                
                build_Dialog() 
        else 
                guiSetVisible( Main, false ) 
                showCursor(false) 
        end 
end 
  
bindKey ( "F9", "down", GuiShow ) 
  
addEventHandler( "onClientGUIClick", root,  
    function (  ) 
        if ( source == Exit ) then 
            guiSetVisible( Main, false ) 
            showCursor(false) 
        end 
     end ) 
  
  
  

الـ

CheckBox

الحين لما اللاعب يفتح اللوحة يشيل تحديد مثلا الأول

وغلق اللوحة ويرجع يفتحها يلاقي ال

CheckBox

متحدد

كيف اخليه ما يرجعها ؟

وكذلك ال

Edit box

لما يكتب فية مثلا 50 يغلق اللوحة يرجع يقتحها يلاقي راجع 150

كيف اخليها ما يرجعها للنص الأساسي ؟

واسف على الأطالة وشكرا

Link to comment

انت عامل كل ما يكبس الزر تعمل لوحة غير الكانت معموله من اول

GUIEditor = { 
    label = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
        local screenWidth, screenHeight = guiGetScreenSize() 
        local windowWidth, windowHeight = 157, 234 
        local left = screenWidth/2 - windowWidth/2 
        local top = screenHeight/2 - windowHeight/2 
        Main = guiCreateWindow(left, top, windowWidth, windowHeight, "{I.Q} Lions", false) 
        guiWindowSetSizable(Main, false) 
        Exit = guiCreateButton(10, 196, 137, 28, "اغلاق", false, Main) 
        GUIEditor.label[1] = guiCreateLabel(42, 119, 105, 16, "أقصى سرعة للأنذار", false, Main) 
        FullSpeed = guiCreateEdit(10, 135, 137, 17, "150", false, Main) 
        XSpeed = guiCreateCheckBox(9, 24, 138, 16, "صوت اجتياز السرعة", true, false, Main) 
        XHealth = guiCreateCheckBox(9, 50, 138, 16, "صوت احتراق السيارة", true, false, Main) 
        GUIEditor.label[2] = guiCreateLabel(14, 76, 28, 15, "BY:", false, Main) 
        GUIEditor.label[3] = guiCreateLabel(38, 77, 90, 14, "Mr.Mouamle", false, Main)     
end) 
  
function GuiShow ( )         
       guiSetVisible(Main,not guiGetVisible(Main)) 
    showCursor(guiGetVisible(Main)) 
end  
bindKey ( "F9", "down", GuiShow ) 
  
addEventHandler( "onClientGUIClick", root, 
    function (  ) 
        if ( source == Exit ) then 
            guiSetVisible( Main, false ) 
            showCursor(false) 
        end 
     end ) 
  

edit #

للمساعده #

getPedOccupiedVehicle 
getElementSpeed 
guiGetText 
playSound 
if (guiCheckBoxGetSelected(FullSpeed) == true) then 

Link to comment
انت عامل كل ما يكبس الزر تعمل لوحة غير الكانت معموله من اول
GUIEditor = { 
    label = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
        local screenWidth, screenHeight = guiGetScreenSize() 
        local windowWidth, windowHeight = 157, 234 
        local left = screenWidth/2 - windowWidth/2 
        local top = screenHeight/2 - windowHeight/2 
        Main = guiCreateWindow(left, top, windowWidth, windowHeight, "{I.Q} Lions", false) 
        guiWindowSetSizable(Main, false) 
        Exit = guiCreateButton(10, 196, 137, 28, "اغلاق", false, Main) 
        GUIEditor.label[1] = guiCreateLabel(42, 119, 105, 16, "أقصى سرعة للأنذار", false, Main) 
        FullSpeed = guiCreateEdit(10, 135, 137, 17, "150", false, Main) 
        XSpeed = guiCreateCheckBox(9, 24, 138, 16, "صوت اجتياز السرعة", true, false, Main) 
        XHealth = guiCreateCheckBox(9, 50, 138, 16, "صوت احتراق السيارة", true, false, Main) 
        GUIEditor.label[2] = guiCreateLabel(14, 76, 28, 15, "BY:", false, Main) 
        GUIEditor.label[3] = guiCreateLabel(38, 77, 90, 14, "Mr.Mouamle", false, Main)     
end) 
  
function GuiShow ( )         
       guiSetVisible(Main,not guiGetVisible(Main)) 
    showCursor(guiGetVisible(Main)) 
end  
bindKey ( "F9", "down", GuiShow ) 
  
addEventHandler( "onClientGUIClick", root, 
    function (  ) 
        if ( source == Exit ) then 
            guiSetVisible( Main, false ) 
            showCursor(false) 
        end 
     end ) 
  

edit #

للمساعده #

getPedOccupiedVehicle 
getElementSpeed 
guiGetText 
playSound 
if (guiCheckBoxGetSelected(FullSpeed) == true) then 

شكرا

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...