hunter96 Posted November 11, 2013 Posted November 11, 2013 السلام عليكم امبكم اتعدلون لي الكود مشكلة لم اجي اشغله تطلع لي اللوحة انا امبي لين ضغط اف5 تطلع client GUIEditor = { window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(13, 158, 209, 291, "SHOP HUNTER ver 1.3", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.60) guiSetProperty(GUIEditor.window[1], "CaptionColour", "F99DFEFD") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(15, 36, 89, 69, ":shopheavyweapons//heatseek.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(112, 37, 88, 67, ":shopheavyweapons//minigun.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(62, 131, 84, 68, ":shopheavyweapons//rocketla.png", false, GUIEditor.window[1]) w1 = guiCreateButton(15, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w1, "default-bold-small") guiSetProperty(w1, "NormalTextColour", "FF53FF00") w2 = guiCreateButton(113, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w2, "default-bold-small") guiSetProperty(w2, "NormalTextColour", "FF53FF00") w3 = guiCreateButton(62, 199, 84, 19, "$9000", false, GUIEditor.window[1]) guiSetFont(w3, "default-bold-small") guiSetProperty(w3, "NormalTextColour", "FF53FF00") end ) guiSetVisible(GUIEditor.window[1],false) bindKey ( "F5" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", root, function() if ( source == w1 ) then triggerServerEvent("w1",getLocalPlayer()) elseif (source == w2) then triggerServerEvent("w2",getLocalPlayer()) elseif (source == w3) then triggerServerEvent("w3",getLocalPlayer()) end end ) server outputChatBox ( "PRESS (F5) TO OPEN A SHOP OF HEAVY WEAPONS", getRootElement(), 255, 0, 0, true ) addEvent("w1",true) addEventHandler("w1",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 10000) then takePlayerMoney(source,10000) giveWeapon ( source , 36,999 ) setPedWeaponSlot(source, getSlotFromWeapon(36)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon ", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $10000 ", source, 255, 0, 0, true) end end ) ------------------------------------------------------------------------------------------ addEvent("w2",true) addEventHandler("w2",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 10000) then takePlayerMoney(source,10000) giveWeapon ( source , 38,999 ) setPedWeaponSlot(source, getSlotFromWeapon(38)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon ", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $10000", source, 255, 0, 0, true) end end ) --------------------------------------------------------------------------------- addEvent("w3",true) addEventHandler("w3",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 35,999 ) setPedWeaponSlot(source, getSlotFromWeapon(35)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon ", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 ", source, 255, 0, 0, true) end end )
فاّرس Posted November 11, 2013 Posted November 11, 2013 GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(13, 158, 209, 291, "SHOP HUNTER ver 1.3", false) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.60) guiSetProperty(GUIEditor.window[1], "CaptionColour", "F99DFEFD") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(15, 36, 89, 69, ":shopheavyweapons//heatseek.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(112, 37, 88, 67, ":shopheavyweapons//minigun.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(62, 131, 84, 68, ":shopheavyweapons//rocketla.png", false, GUIEditor.window[1]) w1 = guiCreateButton(15, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w1, "default-bold-small") guiSetProperty(w1, "NormalTextColour", "FF53FF00") w2 = guiCreateButton(113, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w2, "default-bold-small") guiSetProperty(w2, "NormalTextColour", "FF53FF00") w3 = guiCreateButton(62, 199, 84, 19, "$9000", false, GUIEditor.window[1]) guiSetFont(w3, "default-bold-small") guiSetProperty(w3, "NormalTextColour", "FF53FF00") addEventHandler ("onClientGUIClick", root,function() if ( source == w1 ) then triggerServerEvent("w1",getLocalPlayer()) elseif (source == w2) then triggerServerEvent("w2",getLocalPlayer()) elseif (source == w3) then triggerServerEvent("w3",getLocalPlayer()) end end ) bindKey ( "F5" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) Sha67 سابقاً
hunter96 Posted November 11, 2013 Author Posted November 11, 2013 GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(13, 158, 209, 291, "SHOP HUNTER ver 1.3", false) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.60) guiSetProperty(GUIEditor.window[1], "CaptionColour", "F99DFEFD") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(15, 36, 89, 69, ":shopheavyweapons//heatseek.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(112, 37, 88, 67, ":shopheavyweapons//minigun.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(62, 131, 84, 68, ":shopheavyweapons//rocketla.png", false, GUIEditor.window[1]) w1 = guiCreateButton(15, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w1, "default-bold-small") guiSetProperty(w1, "NormalTextColour", "FF53FF00") w2 = guiCreateButton(113, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w2, "default-bold-small") guiSetProperty(w2, "NormalTextColour", "FF53FF00") w3 = guiCreateButton(62, 199, 84, 19, "$9000", false, GUIEditor.window[1]) guiSetFont(w3, "default-bold-small") guiSetProperty(w3, "NormalTextColour", "FF53FF00") addEventHandler ("onClientGUIClick", root,function() if ( source == w1 ) then triggerServerEvent("w1",getLocalPlayer()) elseif (source == w2) then triggerServerEvent("w2",getLocalPlayer()) elseif (source == w3) then triggerServerEvent("w3",getLocalPlayer()) end end ) bindKey ( "F5" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) طلع لي المود خطا ما شتغل
Waleed_A Posted November 11, 2013 Posted November 11, 2013 (edited) debugscript 3 ? + تأكد انت الزر الي يفتح اللوحة F5 Edited November 11, 2013 by Guest
hunter96 Posted November 11, 2013 Author Posted November 11, 2013 debugscript 3 ?+ تأكد انت الزر الي يفتح اللوحة F5 من قبل كان يشتغل بس يوم غيرت الكود حطيت الكود الا عطاني ياه ذا بيست ماشتغل
Waleed_A Posted November 11, 2013 Posted November 11, 2013 (edited) اوكي جرب ذا GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(13, 158, 209, 291, "SHOP HUNTER ver 1.3", false) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.60) guiSetProperty(GUIEditor.window[1], "CaptionColour", "F99DFEFD") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, "shopheavyweapons/logohunter.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(15, 36, 89, 69, "shopheavyweapons/heatseek.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(112, 37, 88, 67, "shopheavyweapons/minigun.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(62, 131, 84, 68, "shopheavyweapons/rocketla.png", false, GUIEditor.window[1]) w1 = guiCreateButton(15, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w1, "default-bold-small") guiSetProperty(w1, "NormalTextColour", "FF53FF00") w2 = guiCreateButton(113, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w2, "default-bold-small") guiSetProperty(w2, "NormalTextColour", "FF53FF00") w3 = guiCreateButton(62, 199, 84, 19, "$9000", false, GUIEditor.window[1]) guiSetFont(w3, "default-bold-small") guiSetProperty(w3, "NormalTextColour", "FF53FF00") addEventHandler ("onClientGUIClick", root,function() if ( source == w1 ) then triggerServerEvent("w1",getLocalPlayer()) elseif (source == w2) then triggerServerEvent("w2",getLocalPlayer()) elseif (source == w3) then triggerServerEvent("w3",getLocalPlayer()) end end ) bindKey("f5","down",function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) Edited November 11, 2013 by Guest
xX|KeMo|Xx Posted November 11, 2013 Posted November 11, 2013 استبدلهـ كلينت ان شآء الله هذآ بيظبط معك GUIEditor = { window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(13, 158, 209, 291, "SHOP HUNTER ver 1.3", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "F99DFEFD") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(15, 36, 89, 69, ":shopheavyweapons//heatseek.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(112, 37, 88, 67, ":shopheavyweapons//minigun.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(62, 131, 84, 68, ":shopheavyweapons//rocketla.png", false, GUIEditor.window[1]) w1 = guiCreateButton(15, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w1, "default-bold-small") guiSetProperty(w1, "NormalTextColour", "FF53FF00") w2 = guiCreateButton(113, 108, 84, 19, "$10000", false, GUIEditor.window[1]) guiSetFont(w2, "default-bold-small") guiSetProperty(w2, "NormalTextColour", "FF53FF00") w3 = guiCreateButton(62, 199, 84, 19, "$9000", false, GUIEditor.window[1]) guiSetFont(w3, "default-bold-small") guiSetProperty(w3, "NormalTextColour", "FF53FF00") end ) guiSetVisible(GUIEditor.window[1],false) bindKey ( "F5" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", root, function() if ( source == w1 ) then triggerServerEvent("w1",getLocalPlayer()) elseif (source == w2) then triggerServerEvent("w2",getLocalPlayer()) elseif (source == w3) then triggerServerEvent("w3",getLocalPlayer()) end end ) FaceBook: Kamal Skype: kkk-ka MultiGames V.2 in Gta-Pro(1) (2)
فاّرس Posted November 11, 2013 Posted November 11, 2013 ومن قال بيطلع خطأ؟ الكود صحيح -__- تأكد ان الصور موجوده بس ذذ Sha67 سابقاً
Waleed_A Posted November 11, 2013 Posted November 11, 2013 اتوقع الخطأ هنا GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) لو تلاحظوا مسار الصورة
فاّرس Posted November 11, 2013 Posted November 11, 2013 اتوقع الخطأ هنا GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) لو تلاحظوا مسار الصورة : The filepath of the file in the following format: ":resourceName/path". 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file. لا مو خطأ , هذي تستخدم عامة لأخذ شيء من مود ثاني, مثل اخذ صور من مود ثاني... Sha67 سابقاً
Waleed_A Posted November 11, 2013 Posted November 11, 2013 اتوقع الخطأ هنا GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) لو تلاحظوا مسار الصورة : The filepath of the file in the following format: ":resourceName/path". 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file. لا مو خطأ , هذي تستخدم عامة لأخذ شيء من مود ثاني, مثل اخذ صور من مود ثاني... اها توقعتها خطأ شكرا ع المعلومة
K1NG Posted November 11, 2013 Posted November 11, 2013 اتوقع الخطأ هنا GUIEditor.staticimage[1] = guiCreateStaticImage(9, 218, 191, 64, ":shopheavyweapons//logohunter.png", false, GUIEditor.window[1]) لو تلاحظوا مسار الصورة : The filepath of the file in the following format: ":resourceName/path". 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file. لا مو خطأ , هذي تستخدم عامة لأخذ شيء من مود ثاني, مثل اخذ صور من مود ثاني... :shopheavyweapons//logohunter.png على فكرة هي للحين فيها خطأ لو تلاحظ هو حاط '/' مرتين بين اسم السكربت واسم الصورة
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now