Jump to content

[x تعديل كود x]


Recommended Posts

آلسلام عليكم

 

آلحين في مود منشور بآلنت آكيد معروف - لو آحد ضغط آف 7 يخفي كل شي بآللعبة

آنآ آبي آسوي لو آحد ضغط زر بلوحة يخفي كل شي بعد

 

آلمود :

local hideKey = "F7"
local hideALL = false
local sx, sy = guiGetScreenSize()
local screen = dxCreateScreenSource ( sx, sy ) 
bindKey ( hideKey, "down", function()
    if hideALL then
        showChat ( true ) 		
		hideALL = false
	else
	   showChat ( false ) 
	   hideALL = true
	end
end)
addEventHandler( "onClientRender", root, function()
	if hideALL then
		dxUpdateScreenSource( screen )                  
		dxDrawImage( 0,  0,  sx, sy, screen )      
	end
end)

 

Link to comment
3 hours ago, Mr.Mostafa said:

آلسلام عليكم

 

آلحين في مود منشور بآلنت آكيد معروف - لو آحد ضغط آف 7 يخفي كل شي بآللعبة

آنآ آبي آسوي لو آحد ضغط زر بلوحة يخفي كل شي بعد

 

آلمود :


local hideKey = "F7"
local hideALL = false
local sx, sy = guiGetScreenSize()
local screen = dxCreateScreenSource ( sx, sy ) 
bindKey ( hideKey, "down", function()
    if hideALL then
        showChat ( true ) 		
		hideALL = false
	else
	   showChat ( false ) 
	   hideALL = true
	end
end)
addEventHandler( "onClientRender", root, function()
	if hideALL then
		dxUpdateScreenSource( screen )                  
		dxDrawImage( 0,  0,  sx, sy, screen )      
	end
end)

 

وضح ؟

Link to comment
3 minutes ago, Mr.Mostafa said:

آبي لمآ آضغط زر من لوحة - يخفي كل شي - آلخريطة - آلشآت - آلي فوق علي آليمين حق آلفلوس وآلسآعة - وكله 

addEventHandler ( "onClientGUIClick", wzroot, 
	function ( )
		if ( source == الزر ) then
			if isPlayerHudComponentVisible("money") == true then
				setPlayerHudComponentVisible( "weapon", false )
				setPlayerHudComponentVisible( "armour", false )
				setPlayerHudComponentVisible( "health", false )
				setPlayerHudComponentVisible( "ammo", false )
				setPlayerHudComponentVisible( "clock", false )
				setPlayerHudComponentVisible( "money", false )
				setPlayerHudComponentVisible( "wanted", false )
				setPlayerHudComponentVisible( "breath", false )
       		end
      end
   end
)

 

Link to comment
8 minutes ago, Source|> said:

addEventHandler ( "onClientGUIClick", wzroot, 
	function ( )
		if ( source == الزر ) then
			if isPlayerHudComponentVisible("money") == true then
				setPlayerHudComponentVisible( "weapon", false )
				setPlayerHudComponentVisible( "armour", false )
				setPlayerHudComponentVisible( "health", false )
				setPlayerHudComponentVisible( "ammo", false )
				setPlayerHudComponentVisible( "clock", false )
				setPlayerHudComponentVisible( "money", false )
				setPlayerHudComponentVisible( "wanted", false )
				setPlayerHudComponentVisible( "breath", false )
       		end
      end
   end
)

 

للآسف مب شغآل مآ خفي شي

Link to comment
4 hours ago, Source|> said:

addEventHandler ( "onClientGUIClick", wzroot, 
	function ( )
		if ( source == الزر ) then
			if isPlayerHudComponentVisible("money") == true then
				setPlayerHudComponentVisible( "weapon", false )
				setPlayerHudComponentVisible( "armour", false )
				setPlayerHudComponentVisible( "health", false )
				setPlayerHudComponentVisible( "ammo", false )
				setPlayerHudComponentVisible( "clock", false )
				setPlayerHudComponentVisible( "money", false )
				setPlayerHudComponentVisible( "wanted", false )
				setPlayerHudComponentVisible( "breath", false )
       		end
      end
   end
)

 

جربت آكتر من مرة مآ آشتغل - آلكود خطآ

5 hours ago, Source|> said:

addEventHandler ( "onClientGUIClick", wzroot, 
	function ( )
		if ( source == الزر ) then
			if isPlayerHudComponentVisible("money") == true then
				setPlayerHudComponentVisible( "weapon", false )
				setPlayerHudComponentVisible( "armour", false )
				setPlayerHudComponentVisible( "health", false )
				setPlayerHudComponentVisible( "ammo", false )
				setPlayerHudComponentVisible( "clock", false )
				setPlayerHudComponentVisible( "money", false )
				setPlayerHudComponentVisible( "wanted", false )
				setPlayerHudComponentVisible( "breath", false )
       		end
      end
   end
)

 


GUIEditor = {
    button = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(454, 184, 553, 425, "لوحة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(185, 139, 234, 97, "آخفآء آلكل", false, GUIEditor.window[1])    
    end
)

addEventHandler ( "onClientGUIClick", wzroot, 
	function ( )
		if ( source == GUIEditor.button[1] ) then
			if isPlayerHudComponentVisible("money") == true then
				setPlayerHudComponentVisible( "weapon", false )
				setPlayerHudComponentVisible( "armour", false )
				setPlayerHudComponentVisible( "health", false )
				setPlayerHudComponentVisible( "ammo", false )
				setPlayerHudComponentVisible( "clock", false )
				setPlayerHudComponentVisible( "money", false )
				setPlayerHudComponentVisible( "wanted", false )
				setPlayerHudComponentVisible( "breath", false )
       		end
      end
   end
)

آلحين هآدي لوحتي وين آلخطآ ؟

Link to comment
5 hours ago, Mr.Mostafa said:

جربت آكتر من مرة مآ آشتغل - آلكود خطآ


GUIEditor = {
    button = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(454, 184, 553, 425, "لوحة", false)
        guiWindowSetSizable(GUIEditor.window[1], false)
        guiSetAlpha(GUIEditor.window[1], 1.00)

        GUIEditor.button[1] = guiCreateButton(185, 139, 234, 97, "آخفآء آلكل", false, GUIEditor.window[1])    
    end
)

addEventHandler ( "onClientGUIClick", wzroot, 
	function ( )
		if ( source == GUIEditor.button[1] ) then
			if isPlayerHudComponentVisible("money") == true then
				setPlayerHudComponentVisible( "weapon", false )
				setPlayerHudComponentVisible( "armour", false )
				setPlayerHudComponentVisible( "health", false )
				setPlayerHudComponentVisible( "ammo", false )
				setPlayerHudComponentVisible( "clock", false )
				setPlayerHudComponentVisible( "money", false )
				setPlayerHudComponentVisible( "wanted", false )
				setPlayerHudComponentVisible( "breath", false )
       		end
      end
   end
)

آلحين هآدي لوحتي وين آلخطآ ؟

جرب

 

addEventHandler ( "onClientGUIClick", root, 
	function ( )
		if ( source == GUIEditor.button[1] ) then
			if isPlayerHudComponentVisible("money") == true then
				setPlayerHudComponentVisible( "weapon", false )
				setPlayerHudComponentVisible( "armour", false )
				setPlayerHudComponentVisible( "health", false )
				setPlayerHudComponentVisible( "ammo", false )
				setPlayerHudComponentVisible( "clock", false )
				setPlayerHudComponentVisible( "money", false )
				setPlayerHudComponentVisible( "wanted", false )
				setPlayerHudComponentVisible( "breath", false )
       		end
      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...