Jump to content

تعديل


Recommended Posts

local Marker = createMarker (846.49518,-2064.81494,12.86719,"cylinder", 2, 255, 255, 0, 150) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(220, 150, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.memo[1] = guiCreateMemo(9, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
addEventHandler('onClientMarkerHit', Marker, 
function ( hitPlayer ) 
         if ( hitPlayer == localPlayer ) then 
         guiSetVisible ( GUIEditor.window[1] ,true ) 
        showCursor( true ) 
       guiSetInputEnabled(false) 
    end 
end  
  
    function closeGUI () 
        guiSetVisible(GUIEditor.window[1], false ) 
        showCursor(false) 
    end 
    addEventHandler("onClientGUIClick", GUIEditor.button[1], closeGUI, false) 
  

Link to comment

ماشاء الله عليك نبيه من اول بوست لك بالمنتدى وش تبى بالضبط لو سمحت ياخى ؟؟

على ماعتقد انت تبى تصليح للزر اللى يقفل اللوحة وناقصك اغلاق للكود برمز القوس فى اظهار اللوحة

تفضل كودك اخى

local Marker = createMarker (846.49518,-2064.81494,12.86719,"cylinder", 2, 255, 255, 0, 150) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(220, 150, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.memo[1] = guiCreateMemo(9, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
addEventHandler('onClientMarkerHit', Marker, 
function ( hitPlayer ) 
         if ( hitPlayer == localPlayer ) then 
         guiSetVisible ( GUIEditor.window[1] ,true ) 
        showCursor( true ) 
       guiSetInputEnabled(false) 
    end 
end  
) 
  
 function closeGUI () 
 if ( source == GUIEditor.button[1] ) then 
         guiSetVisible(GUIEditor.window[1], false ) 
        showCursor(false) 
    end 
    end 
    addEventHandler("onClientGUIClick",getRootElement(), closeGUI) 

Link to comment
ماشاء الله عليك نبيه من اول بوست لك بالمنتدى وش تبى بالضبط لو سمحت ياخى ؟؟

على ماعتقد انت تبى تصليح للزر اللى يقفل اللوحة وناقصك اغلاق للكود برمز القوس فى اظهار اللوحة

تفضل كودك اخى

local Marker = createMarker (846.49518,-2064.81494,12.86719,"cylinder", 2, 255, 255, 0, 150) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(220, 150, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.memo[1] = guiCreateMemo(9, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
addEventHandler('onClientMarkerHit', Marker, 
function ( hitPlayer ) 
         if ( hitPlayer == localPlayer ) then 
         guiSetVisible ( GUIEditor.window[1] ,true ) 
        showCursor( true ) 
       guiSetInputEnabled(false) 
    end 
end  
) 
  
 function closeGUI () 
 if ( source == GUIEditor.button[1] ) then 
         guiSetVisible(GUIEditor.window[1], false ) 
        showCursor(false) 
    end 
    end 
    addEventHandler("onClientGUIClick",getRootElement(), closeGUI) 

الله يعطيك الععافية اخخوي بس اذا شغلت المود على طول يجي الـ Gui بدون ماروح للماركر

+

الـ Memo مابي اي واحد يعدل عليها

الحين اقدر اعدلها على احذف كل شوي حتى لو اسوي logout من حسابي

Link to comment

local Marker = createMarker (846.49,-2064.81,12.86,"cylinder", 2, 255, 255, 0, 150) 
      
    GUIEditor = { 
        button = {}, 
        window = {}, 
        label = {}, 
        memo = {} 
    } 
    addEventHandler("onClientResourceStart", resourceRoot, 
        function() 
            GUIEditor.window[1] = guiCreateWindow(220, 150, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) 
            guiWindowSetSizable(GUIEditor.window[1], false) 
            guiSetAlpha(GUIEditor.window[1], 1.00) 
            guiSetVisible (GUIEditor.window[1], false) 
      
            GUIEditor.memo[1] = guiCreateMemo(9, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) 
            GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) 
            guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) 
            GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) 
            guiSetFont(GUIEditor.button[1], "sa-header") 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
        end 
    ) 
      
addEventHandler('onClientMarkerHit', Marker, 
  function ( hitPlayer ) 
     if ( hitPlayer == localPlayer ) then 
     guiSetVisible ( GUIEditor.window[1] ,true ) 
     showCursor( true ) 
     guiSetInputEnabled(true) 
     end 
 end 
) 
      
addEventHandler ("onClientGUIClick", root, 
  function () 
     if ( source == GUIEditor.button[1] ) then 
     guiSetVisible (GUIEditor.window[1], false) 
     showCursor (false) 
     guiSetInputEnabled(false) 
     end 
 end 
) 
Link to comment
local Marker = createMarker (846.49,-2064.81,12.86,"cylinder", 2, 255, 255, 0, 150) 
      
    GUIEditor = { 
        button = {}, 
        window = {}, 
        label = {}, 
        memo = {} 
    } 
    addEventHandler("onClientResourceStart", resourceRoot, 
        function() 
            GUIEditor.window[1] = guiCreateWindow(220, 150, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) 
            guiWindowSetSizable(GUIEditor.window[1], false) 
            guiSetAlpha(GUIEditor.window[1], 1.00) 
            guiSetVisible (GUIEditor.window[1], false) 
      
            GUIEditor.memo[1] = guiCreateMemo(9, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) 
            GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) 
            guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) 
            GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) 
            guiSetFont(GUIEditor.button[1], "sa-header") 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
        end 
    ) 
      
addEventHandler('onClientMarkerHit', Marker, 
  function ( hitPlayer ) 
     if ( hitPlayer == localPlayer ) then 
     guiSetVisible ( GUIEditor.window[1] ,true ) 
     showCursor( true ) 
     guiSetInputEnabled(true) 
     end 
 end 
) 
      
addEventHandler ("onClientGUIClick", root, 
  function () 
     if ( source == GUIEditor.button[1] ) then 
     guiSetVisible (GUIEditor.window[1], false) 
     showCursor (false) 
     guiSetInputEnabled(false) 
     end 
 end 
) 

مازببط

Link to comment

local Marker = createMarker (846.49,-2064.81,12.86,"cylinder", 2, 255, 255, 0, 150)   
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(181, 140, 438, 320, "=[ Group Info ]= | =[ Base Info ]=", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
        guiSetVisible (GUIEditor.window[1], false) 
  
        GUIEditor.memo[1] = guiCreateMemo(10, 23, 419, 250, "Group Info Or Base Info Here\n\n\n\n\nBy : mnGr7", false, GUIEditor.window[1]) 
        guiMemoSetReadOnly(GUIEditor.memo[1], true) 
        GUIEditor.label[1] = guiCreateLabel(317, 283, 115, 20, "Created By : mnGr7", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 151, 0, 0) 
        GUIEditor.button[1] = guiCreateButton(13, 277, 294, 33, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
    end 
) 
          
addEventHandler('onClientMarkerHit', Marker, 
  function ( hitPlayer ) 
     if ( hitPlayer == localPlayer ) then 
     guiSetVisible ( GUIEditor.window[1] ,true ) 
     showCursor( true ) 
     guiSetInputEnabled(true) 
     end 
 end 
) 
          
addEventHandler ("onClientGUIClick", root, 
  function () 
     if ( source == GUIEditor.button[1] ) then 
     guiSetVisible (GUIEditor.window[1], false) 
     showCursor (false) 
     guiSetInputEnabled(false) 
     end 
 end 
) 
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...