السلام عليكم ورحمة الله وبركاته ....
شباب انا كنت اسوي مود شوب بس وقفتني مشكلة كبيرة ما عرفت احلها يا ريت تساعدوني
المشكلة هي انه انا سويت لوحة
ومنها مشتاقات مثلا
Handguns
موجودة في اللوحة الاساسية لما تضغط عليها المفروض تفتح لك لوحة ثانية تشتري منها مسدسات
هذه كانت فكرة المود
سويت الوحة الاولة وبرمجتها وصارت شغالة وتمام
لما ضفت اللوحة الثانية في نفس الملف وبرمجتها
خرب المود وصارت الماركر ما تظهر حقت الشوب
كود الشوب
كلينت لسة
GUIEditor = {
label = {},
staticimage = {}
}
local screenW, screenH = guiGetScreenSize()
GUIEditor.staticimage[1] = guiCreateStaticImage(screenW - 163 - 10, (screenH - 494) / 2, 163, 494, "images/wnd.png", false)
GUIEditor.label[1] = guiCreateLabel(11, 55, 142, 30, "Handguns", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 255, 0, 0)
guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[1], "center")
GUIEditor.label[2] = guiCreateLabel(10, 119, 142, 30, "Shotguns", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 254, 0, 251)
guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[2], "center")
GUIEditor.label[3] = guiCreateLabel(11, 186, 142, 30, "Sub-machine guns", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 0, 5, 254)
guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[3], "center")
GUIEditor.label[4] = guiCreateLabel(10, 253, 142, 30, "Machine guns", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[4], "default-bold-small")
guiLabelSetColor(GUIEditor.label[4], 0, 254, 245)
guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[4], "center")
GUIEditor.label[5] = guiCreateLabel(10, 323, 142, 30, "Rifles", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[5], "default-bold-small")
guiLabelSetColor(GUIEditor.label[5], 0, 254, 5)
guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[5], "center")
GUIEditor.label[6] = guiCreateLabel(11, 394, 142, 30, "Projectiles", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[6], "default-bold-small")
guiLabelSetColor(GUIEditor.label[6], 254, 251, 0)
guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[6], "center")
GUIEditor.label[7] = guiCreateLabel(3, 1, 159, 15, "Weapon Shop", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[7], "clear-normal")
guiLabelSetColor(GUIEditor.label[7], 12, 253, 0)
guiLabelSetHorizontalAlign(GUIEditor.label[7], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[7], "center")
GUIEditor.label[8] = guiCreateLabel(11, 454, 142, 30, "Close", false, GUIEditor.staticimage[1])
guiSetFont(GUIEditor.label[8], "default-bold-small")
guiLabelSetColor(GUIEditor.label[8], 126, 126, 126)
guiLabelSetHorizontalAlign(GUIEditor.label[8], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[8], "center")
addEventHandler( "onClientResourceStart", getRootElement( ),
function ()
if guiGetVisible(GUIEditor.staticimage[1]) == false then
guiSetVisible(GUIEditor.staticimage[1], false)
showCursor(false)
else guiSetVisible(GUIEditor.staticimage[1], false) showCursor(false)
end end
)
addEventHandler("onClientGUIClick",root,
function ()
if source == GUIEditor.label[8] then
if ( guiGetVisible(GUIEditor.staticimage[1]) == false) then end
guiSetVisible (GUIEditor.staticimage[1], false) showCursor(false)
guiSetInputEnabled(false)
end end
)
local theMarker = createMarker ( 2487.92212, -1666.64771, 12.34375, "cylinder", 1.5, 255, 255, 0, 170 )
addEventHandler ( "onClientMarkerHit", getRootElement(),
function ()
if source == theMarker then
if ( guiGetVisible(GUIEditor.staticimage[1]) == true) then end
guiSetVisible (GUIEditor.staticimage[1], true) showCursor(true)
guiSetInputEnabled(true)
end end
)
GUIEditor.staticimage[2] = guiCreateStaticImage((screenW - 417) / 2, (screenH - 239) / 2, 417, 239, "images/wnd.png", false)
GUIEditor.label[9] = guiCreateLabel(34, 113, 100, 23, "Buy 50 For $500", false, GUIEditor.staticimage[2])
guiLabelSetHorizontalAlign(GUIEditor.label[9], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[9], "center")
GUIEditor.label[10] = guiCreateLabel(155, 113, 100, 23, "Buy 200 For $300", false, GUIEditor.staticimage[2])
guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[10], "center")
GUIEditor.label[11] = guiCreateLabel(280, 113, 100, 23, "Buy 200 For $200", false, GUIEditor.staticimage[2])
guiLabelSetHorizontalAlign(GUIEditor.label[11], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[11], "center")
GUIEditor.label[12] = guiCreateLabel(307, 206, 100, 23, "Close", false, GUIEditor.staticimage[2])
guiLabelSetColor(GUIEditor.label[12], 127, 127, 127)
guiLabelSetHorizontalAlign(GUIEditor.label[12], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[12], "center")
GUIEditor.label[13] = guiCreateLabel(2, 0, 415, 19, "", false, GUIEditor.staticimage[2])
GUIEditor.label[14] = guiCreateLabel(0, 1, 415, 18, "HandGuns", false, GUIEditor.label[13])
guiLabelSetHorizontalAlign(GUIEditor.label[14], "center", false)
guiLabelSetVerticalAlign(GUIEditor.label[14], "center")
GUIEditor.staticimage[3] = guiCreateStaticImage(34, 34, 100, 65, "images/8.png", false, GUIEditor.staticimage[2])
GUIEditor.staticimage[4] = guiCreateStaticImage(155, 34, 100, 65, "images/9.png", false, GUIEditor.staticimage[2])
GUIEditor.staticimage[5] = guiCreateStaticImage(276, 36, 104, 63, "images/10.png", false, GUIEditor.staticimage[2])
addEventHandler( "onClientResourceStart", getRootElement( ),
function ()
if guiGetVisible(GUIEditor.staticimage[2]) == false then
guiSetVisible(GUIEditor.staticimage[2], false)
showCursor(false)
else guiSetVisible(GUIEditor.staticimage[2], false) showCursor(false)
end end
)
addEventHandler ("onClientGUIClick", root,
function ()
if source == GUIEditor.label[12] then
if ( guiGetVisible(GUIEditor.staticimage[2]]) == false) then end
guiSetVisible (GUIEditor.staticimage[2], false) showCursor(false)
guiSetInputEnabled(false)
end end
)
addEventHandler ("onClientGUIClick", root,
function ()
if source == GUIEditor.label[1] then
if ( guiGetVisible(GUIEditor.staticimage[2]) == true) then end
guiSetVisible (GUIEditor.staticimage[2], true) showCursor(true)
guiSetInputEnabled(true)
end end
)
ارجو المساعدة في اسرع وقت