**السلام عليكم ورحة الله وبركاته**
شباب أنا سويت مود مرقص وعملتله لوحة تفتح عند ماركر بس ما ظبط
اللوحة ما تفتح
ده الكود كلينت كامل
GUIEditor = {
tab = {},
tabpanel = {},
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
wnd = guiCreateWindow(229, 44, 400, 485, "The Bar Songs =&||By||&= ZoaxEr", false)
guiWindowSetSizable(wnd, false)
guiSetAlpha(wnd, 1.00)
GUIEditor.tabpanel[1] = guiCreateTabPanel(14, 37, 371, 434, false, wnd)
GUIEditor.tab[1] = guiCreateTab("List 1", GUIEditor.tabpanel[1])
GUIEditor.button[1] = guiCreateButton(32, 23, 296, 57, "Wrecking Ball", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.button[1], "sa-gothic")
GUIEditor.button[2] = guiCreateButton(32, 133, 296, 57, "The Disco Song", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.button[2], "sa-gothic")
GUIEditor.button[3] = guiCreateButton(32, 246, 296, 57, "She Wolf", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.button[3], "sa-gothic")
GUIEditor.button[4] = guiCreateButton(32, 343, 296, 57, "Jai Ho", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.button[4], "sa-gothic")
GUIEditor.tab[2] = guiCreateTab("List 2", GUIEditor.tabpanel[1])
GUIEditor.button[5] = guiCreateButton(32, 23, 296, 57, "La Tortura", false, GUIEditor.tab[2])
guiSetFont(GUIEditor.button[5], "sa-gothic")
GUIEditor.button[6] = guiCreateButton(32, 127, 296, 57, "Dark Horse", false, GUIEditor.tab[2])
guiSetFont(GUIEditor.button[6], "sa-gothic")
GUIEditor.button[7] = guiCreateButton(32, 225, 296, 57, "I Like It's Loud", false, GUIEditor.tab[2])
guiSetFont(GUIEditor.button[7], "sa-gothic")
GUIEditor.button[8] = guiCreateButton(32, 325, 296, 57, "Gypsy", false, GUIEditor.tab[2])
guiSetFont(GUIEditor.button[8], "sa-gothic")
GUIEditor.button[9] = guiCreateButton(309, 23, 81, 32, "Close", false, wnd)
end
)
Mark = {
{2178.6000976563, 1048.1999511719, 1973.3100585938},
}
--Marker
local Marker1 = createMarker(2178.6000976563, 1048.1999511719, 1973.3100585938, "cylinder", 1.5, 0,0,255)
setElementInterior (Marker1,0)
setElementDimension (Marker1, 0)
for k,v in ipairs (Mark) do
z = v[3] -1
Marker = createMarker ( v[1], v[2], z, "cylinder", 1.5, 0, 0, 0, 255 )
addEventHandler('onClientMarkerHit', Marker,
function ( hitPlayer )
if ( hitPlayer == localPlayer ) then
guiSetVisible (wnd, true )
showCursor( true )
end
end
)
end
addEventHandler ("onClientGUIClick", getRootElement(),
function(button, state, absoluteX, absoluteY)
if ( source == GUIEditor.button[9] ) then
guiSetVisible ( GUIEditor.button[9] , false)
showCursor ( false )
elseif ( source == GUIEditor.button[1] ) then
playSound3D("sounds/Wrecking_Ball.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
elseif ( source == GUIEditor.button[2] ) then
playSound3D("sounds/The_Disco_Song.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
elseif ( source == GUIEditor.button[3] ) then
playSound3D("sounds/She_Wolf.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
elseif ( source == GUIEditor.button[4] ) then
playSound3D("sounds/Jai_Ho.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
elseif ( source == GUIEditor.button[5] ) then
playSound3D("sounds/La_Tortura.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
elseif ( source == GUIEditor.button[6] ) then
playSound3D("sounds/Dark_Horse.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
elseif ( source == GUIEditor.button[7] ) then
playSound3D("sounds/I_Like_It's_Loud.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
elseif ( source == GUIEditor.button[8] ) then
playSound3D("sounds/Gypsy.mp3",2178.400390625,1041.5,1974.9000244141, true)
setSoundVolume(desusound,1.-- s8) -->
setSoundMaxDistance(desusound, 200)
end
end)