outputChatBox("Car Panel By Alooy1212 | To OPen/close F2",0,255,0,true)
outputChatBox("لوحة اختيار السيارت من صنع علوي1212 | لفتح\اغلاق الوحة أف2",0,255,0,true)
GUIEditor = {
button = {},
window = {},
edit = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(138, 118, 508, 387, " لوحة أختيار السيارت والدراجات النارية", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEBF00")
GUIEditor.button[1] = guiCreateButton(14, 42, 477, 43, "#%NRG-500%# | #%دراجة نارية#%", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(14, 95, 477, 43, "@!BUS!@ | @!بأاأاأص!@", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[3] = guiCreateButton(14, 148, 477, 43, "^*^CAR#1 | سيارة #1 ^*^", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[4] = guiCreateButton(14, 201, 477, 43, "!!Car#2 | سيارة #2!!", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[5] = guiCreateButton(14, 254, 477, 43, "^_^CAR#3 ^|^ سيارة#3^_^", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[6] = guiCreateButton(14, 307, 477, 43, "@_@JETMAX $|$ طراد@_@", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")
GUIEditor.edit[1] = guiCreateEdit(17, 350, 474, 27, " Welcome To The server to Close F2 | حياكم الله في السيرفر للغلاق الوحة أف2", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFBE00C5")
guiEditSetReadOnly(GUIEditor.edit[1], true)
GUIEditor.edit[2] = guiCreateEdit(14, 19, 477, 23, " To Get A Car Just Press The Button | لختيار السيارة فقط اظغط الزر ", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.edit[2], "NormalTextColour", "FFC60009")
guiEditSetReadOnly(GUIEditor.edit[2], true)
guiSetVisible ( GUIEditor.window[1], false )
local marker1 = createMarker ( 1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker1,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker2 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker2,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker3 = createMarker ( 1938.7473144531,-2149.123046875,13.553205490112,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker3,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker4 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker4,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker5 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker5,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker6 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker6,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
addEventHandler("onClientGUIClick",GUIEditor.button[6],
function ( )
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end,false)
addEventHandler("onClientGUIClick", root,
function
if ( source == GUIEditor.button[1] ) then
triggerServerEvent("give1",getLocalPlayer())
elseif ( source == GUIEditor.button[2] ) then
triggerServerEvent("give2",getLocalPlayer())
elseif ( source == GUIEditor.button[3] ) then
triggerServerEvent("give3",getLocalPlayer())
elseif ( source == GUIEditor.button[4] ) then
triggerServerEvent("give4",getLocalPlayer())
elseif ( source == GUIEditor.button[5] ) then
triggerServerEvent("give5",getLocalPlayer())
elseif ( source == GUIEditor.button[6] ) then
triggerServerEvent("give6",getLocalPlayer())
end
end
outputChatBox("Car Panel By Alooy1212 | To OPen/close F2",0,255,0,true)
outputChatBox("لوحة اختيار السيارت من صنع علوي1212 | لفتح\اغلاق الوحة أف2",0,255,0,true)
GUIEditor = {
button = {},
window = {},
edit = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(138, 118, 508, 387, " لوحة أختيار السيارت والدراجات النارية", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEBF00")
GUIEditor.button[1] = guiCreateButton(14, 42, 477, 43, "#%NRG-500%# | #%دراجة نارية#%", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(14, 95, 477, 43, "@!BUS!@ | @!بأاأاأص!@", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[3] = guiCreateButton(14, 148, 477, 43, "^*^CAR#1 | سيارة #1 ^*^", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[4] = guiCreateButton(14, 201, 477, 43, "!!Car#2 | سيارة #2!!", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[5] = guiCreateButton(14, 254, 477, 43, "^_^CAR#3 ^|^ سيارة#3^_^", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[6] = guiCreateButton(14, 307, 477, 43, "@_@JETMAX $|$ طراد@_@", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA")
GUIEditor.edit[1] = guiCreateEdit(17, 350, 474, 27, " Welcome To The server to Close F2 | حياكم الله في السيرفر للغلاق الوحة أف2", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFBE00C5")
guiEditSetReadOnly(GUIEditor.edit[1], true)
GUIEditor.edit[2] = guiCreateEdit(14, 19, 477, 23, " To Get A Car Just Press The Button | لختيار السيارة فقط اظغط الزر ", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.edit[2], "NormalTextColour", "FFC60009")
guiEditSetReadOnly(GUIEditor.edit[2], true)
guiSetVisible ( GUIEditor.window[1], false )
local marker1 = createMarker ( 1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker1,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker2 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker2,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker3 = createMarker ( 1938.7473144531,-2149.123046875,13.553205490112,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker3,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker4 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker4,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker5 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker5,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
local marker6 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255)
addEventHandler ( "onClientMarkerHit", marker6,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible ( GUIEditor.window[1], true )
showCursor ( true )
end
end,false
)
addEventHandler("onClientGUIClick",GUIEditor.button[6],
function ( )
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end,false)
addEventHandler("onClientGUIClick", root,
function
if ( source == GUIEditor.button[1] ) then
triggerServerEvent("give1",getLocalPlayer())
elseif ( source == GUIEditor.button[2] ) then
triggerServerEvent("give2",getLocalPlayer())
elseif ( source == GUIEditor.button[3] ) then
triggerServerEvent("give3",getLocalPlayer())
elseif ( source == GUIEditor.button[4] ) then
triggerServerEvent("give4",getLocalPlayer())
elseif ( source == GUIEditor.button[5] ) then
triggerServerEvent("give5",getLocalPlayer())
elseif ( source == GUIEditor.button[6] ) then
triggerServerEvent("give6",getLocalPlayer())
end
end