Jump to content

× مساعدهـ في كود


Recommended Posts

ألسللام عليكم ورحمه ألله وبركاته

 

أنشاء ألله بخير وبصحه وعافيه

 

أبي بس طلب أبي أول م  يلمس المركر تطلع له الوحه هذي

GUIEditor = {

    gridlist = {},

    window = {},

    button = {}

}

addEventHandler("onClientResourceStart", resourceRoot,

    function()

        GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false)

        guiWindowSetSizable(GUIEditor.window[1], false)

        guiSetAlpha(GUIEditor.window[1], 1.00)

        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA")

        GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1])

        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1)

        guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83)

        GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D")

        GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Colos", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77")    

    end

)


 


Edited by !#NssoR_)
Adding Lua tag.
Link to comment
GUIEditor = {

    gridlist = {},

    window = {},

    button = {}

}



        GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false)

        guiWindowSetSizable(GUIEditor.window[1], false)

        guiSetAlpha(GUIEditor.window[1], 1.00)
		
		guiSetVisible( GUIEditor.window[1], false )
		
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA")

        GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1])

        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1)

        guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83)

        GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D")

        GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77")    

local x, y, z = -- احداثيات ماركرك
		
marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 )

wndroot = getResourceRootElement()

addEventHandler("onClientMarkerHit", marker,
	function(plr)
		if plr == localPlayer then
			guiSetVisible(GUIEditor.window[1], true)
			showCursor(true)
		end
	end
)

addEventHandler("onClientGUIClick", wndroot,
	function()
		if ( source == GUIEditor.button[2] ) then
			guiSetVisible( GUIEditor.window[1], false )
			showCursor( false )
		end
	end
)

 

Edited by A7MEDENO
  • Thanks 1
Link to comment
8 minutes ago, x[B-B]'#Mr:SrOrE',<3 said:

ممكن سوال خارج ألبرمجه


طال عمرك في ديسكورد كله مبرمجين قراند

GUIEditor = {

    gridlist = {},

    window = {},

    button = {}

}



        GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false)

        guiWindowSetSizable(GUIEditor.window[1], false)

        guiSetAlpha(GUIEditor.window[1], 1.00)
		
		guiSetVisible( GUIEditor.window[1], false )
		
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA")

        GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1])

        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1)

        guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83)

        GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D")

        GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77")    

local x, y, z = -- احداثيات الماركر
local x2, y2, z2 = -- احداثيات الماركر
local x3, y3, z3 = -- احداثيات الماركر
		
marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x2, y2, z2 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x3, y3, z3 -1 , "cylinder", 1.5, 155, 0, 0 )
wndroot = getResourceRootElement()

addEventHandler("onClientMarkerHit", marker,
	function(plr)
		if plr == localPlayer then
			guiSetVisible(GUIEditor.window[1], true)
			showCursor(true)
		end
	end
)

addEventHandler("onClientGUIClick", wndroot,
	function()
		if ( source == GUIEditor.button[2] ) then
			guiSetVisible( GUIEditor.window[1], false )
			showCursor( false )
		end
	end
)

 

Link to comment

باكـ

 

 

GUIEditor = {

    gridlist = {},

    window = {},

    button = {}

}

        GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false)

        guiWindowSetSizable(GUIEditor.window[1], false)

        guiSetAlpha(GUIEditor.window[1], 1.00)
        
        guiSetVisible( GUIEditor.window[1], false )
        
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA")

        GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1])

        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1)

        guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83)

        GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D")

        GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77")    

local x, y, z = -2229.82178 ,2438.30322 ,2.49412 -- Tierra Robada
local x2, y2, z2 = -2213.27490 ,2421.68774 ,2.49439 -- Tierra Robada
local x3, y3, z3 = -2234.70581 ,2403.31006 ,2.49180 -- Tierra Robada
local x4, y4, z4 = -2250.27295 ,2418.25122 ,2.49676 -- Tierra Robada
local x5, y5, z5 = -2416.25977 ,2312.45581 ,1.37677 -- Tierra Robada
local x6, y6, z6 = -611.52936 ,1809.40186 ,1.26563 -- Tierra Robada
local x7, y7, z7 = -799.44592 ,1813.11182 ,3.00000 -- Tierra Robada
local x8, y8, z8 = -1377.39124 ,2112.92505 ,42.20000 -- Tierra Robada

        
marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x2, y2, z2 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x3, y3, z3 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x4, y4, z4 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x5, y5, z5 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x6, y6, z6 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x7, y7, z7 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x8 y8, z8 -1 , "cylinder", 1.5, 155, 0, 0 )
wndroot = getResourceRootElement()

addEventHandler("onClientMarkerHit", marker,
    function(plr)
        if plr == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
        end
    end
)

addEventHandler("onClientGUIClick", wndroot,
    function()
        if ( source == GUIEditor.button[2] ) then
            guiSetVisible( GUIEditor.window[1], false )
            showCursor( false )
        end
    end
)

 

سويت 8 مركرات أ

 

ألآخطاء

1- يطلع أخر لوحه 

2- يوم سويت 8 أختفئ ألمركر

Link to comment
1 hour ago, x[B-B]'#Mr:SrOrE',<3 said:

باكـ

 

 

GUIEditor = {

    gridlist = {},

    window = {},

    button = {}

}

        GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false)

        guiWindowSetSizable(GUIEditor.window[1], false)

        guiSetAlpha(GUIEditor.window[1], 1.00)
        
        guiSetVisible( GUIEditor.window[1], false )
        
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA")

        GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1])

        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1)

        guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83)

        GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D")

        GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77")    

local x, y, z = -2229.82178 ,2438.30322 ,2.49412 -- Tierra Robada
local x2, y2, z2 = -2213.27490 ,2421.68774 ,2.49439 -- Tierra Robada
local x3, y3, z3 = -2234.70581 ,2403.31006 ,2.49180 -- Tierra Robada
local x4, y4, z4 = -2250.27295 ,2418.25122 ,2.49676 -- Tierra Robada
local x5, y5, z5 = -2416.25977 ,2312.45581 ,1.37677 -- Tierra Robada
local x6, y6, z6 = -611.52936 ,1809.40186 ,1.26563 -- Tierra Robada
local x7, y7, z7 = -799.44592 ,1813.11182 ,3.00000 -- Tierra Robada
local x8, y8, z8 = -1377.39124 ,2112.92505 ,42.20000 -- Tierra Robada

        
marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x2, y2, z2 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x3, y3, z3 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x4, y4, z4 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x5, y5, z5 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x6, y6, z6 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x7, y7, z7 -1 , "cylinder", 1.5, 155, 0, 0 )
marker = createMarker ( x8 y8, z8 -1 , "cylinder", 1.5, 155, 0, 0 )
wndroot = getResourceRootElement()

addEventHandler("onClientMarkerHit", marker,
    function(plr)
        if plr == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
        end
    end
)

addEventHandler("onClientGUIClick", wndroot,
    function()
        if ( source == GUIEditor.button[2] ) then
            guiSetVisible( GUIEditor.window[1], false )
            showCursor( false )
        end
    end
)

 

سويت 8 مركرات أ

 

ألآخطاء

1- يطلع أخر لوحه 

2- يوم سويت 8 أختفئ ألمركر

 

GUIEditor = {

    gridlist = {},

    window = {},

    button = {}

}

        GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false)

        guiWindowSetSizable(GUIEditor.window[1], false)

        guiSetAlpha(GUIEditor.window[1], 1.00)
        
        guiSetVisible( GUIEditor.window[1], false )
        
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA")

        GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1])

        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1)

        guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83)

        GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D")

        GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1])

        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77")    


local Markers = { -- الماركرات
	{-711.00000,957.00000,12.38227},
	{-710.27747,963.82135,12.40817},
	{-715.90405,958.53094,12.19386},
}

for i,M in ipairs(Markers) do
	local marker = createMarker ( M[1], M[2], M[3] -1 , "cylinder", 1.5, 155, 0, 0 )
end



wndroot = getResourceRootElement()

addEventHandler("onClientMarkerHit", root,
    function(plr)
        if plr == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
        end
    end
)

addEventHandler("onClientGUIClick", wndroot,
    function()
        if ( source == GUIEditor.button[2] ) then
            guiSetVisible( GUIEditor.window[1], false )
            showCursor( false )
        end
    end
)

 

  • Thanks 1
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...