FAHD+18 Posted June 22, 2016 Share Posted June 22, 2016 السلام عليكم ورحمه الله وبركاتة انا عندي مشكلة سهلة جدا أولا انا اتعلم البرمجة جديد فسويت هذه الكودات بس المشكلة ان المود لا يعمل ابي حل والتعديل علية اذا هناك خطا GUIEditor = { window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(171, 199, 476, 149, "Car", false) guiWindowSetSizable(GUIEditor.window[1], false) Repair = guiCreateButton(40, 60, 162, 38, "Repair", false, GUIEditor.window[1]) guiSetProperty(Repair, "NormalTextColour", "FFAAAAAA") Repair = guiCreateButton(257, 60, 162, 38, "Nitro", false, GUIEditor.window[1]) guiSetProperty(Repair, "NormalTextColour", "FFAAAAAA") end ) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F1", "down", OpenWin) addEventHandler("onClientGUIClick",root, function () if ( source == Repair ) then triggerServerEvent("buyRpr",localPlayer) end end ) server addEvent("buyRpr",true) addEventHandler("buyRpr",root, function () if ( getPlayerMoney (source) >= 1500 then takePlayerMoney (source,1500) if isPedInVehicle(source) then fixVehcile(getPedOccupiedVehcile(source)) end end ) Link to comment
ALw7sH Posted June 22, 2016 Share Posted June 22, 2016 وش الي مايشتغل؟ ووش يكتب لك في الدي بق؟ (debugscript 3 in F8) وبالنسبة للأزرار ترا عندك زرين بنفس التعريف repair يعني بيكون زر النيترو يشتغل للتصليح بما انه بعد زر التصليح وزر التصليح مابيشتغل لشي Link to comment
iMr.SFA7 Posted June 22, 2016 Share Posted June 22, 2016 عليكم السلام ورحمـه الله وبركـاته أول شيء أنت عندك زرين بنفس المتغير Repair = guiCreateButton(40, 60, 162, 38, "Repair", false, GUIEditor.window[1]) guiSetProperty(Repair, "NormalTextColour", "FFAAAAAA") Repair = guiCreateButton(257, 60, 162, 38, "Nitro", false, GUIEditor.window[1]) guiSetProperty(Repair, "NormalTextColour", "FFAAAAAA") فـ خلنا نغير اسم المتغير حق الزر الثاني Repair = guiCreateButton(40, 60, 162, 38, "Repair", false, GUIEditor.window[1]) guiSetProperty(Repair, "NormalTextColour", "FFAAAAAA") Nitro = guiCreateButton(257, 60, 162, 38, "Nitro", false, GUIEditor.window[1]) guiSetProperty(Nitro, "NormalTextColour", "FFAAAAAA") ثاني شيء بملف السيرفر عندك كم خطأ عندك قوس فاتح ما قفلته بالسطر هذا if ( getPlayerMoney (source) >= 1500 then Vehicle وعندك خطأ بكتابة كلمة ع العموم يصبح هكذا: addEvent("buyRpr",true) addEventHandler("buyRpr",root, function() if (getPlayerMoney (source) >= 1500) then takePlayerMoney (source,1500) if isPedInVehicle(source) and getPedOccupiedVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) end end end) Link to comment
FAHD+18 Posted June 22, 2016 Author Share Posted June 22, 2016 "http://www.up-00.com/" Link to comment
Adham Posted June 22, 2016 Share Posted June 22, 2016 #Client GUIEditor = { window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(171, 199, 476, 149, "Car", false) guiWindowSetSizable(GUIEditor.window[1], false) Repair = guiCreateButton(40, 60, 162, 38, "Repair", false, GUIEditor.window[1]) guiSetProperty(Repair, "NormalTextColour", "FFAAAAAA") Nitro = guiCreateButton(257, 60, 162, 38, "Nitro", false, GUIEditor.window[1]) guiSetProperty(Nitro, "NormalTextColour", "FFAAAAAA") end ) bindKey ( "F1", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler("onClientGUIClick",root, function () if source == Repair then triggerServerEvent("buyRpr",localPlayer) end end ) #Server addEvent("buyRpr", true) addEventHandler("buyRpr", rootElement, function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 5000 ) then takePlayerMoney(source, 5000) fixVehicle(getPedOccupiedVehicle(source)) end end ) Link to comment
SaedAmer Posted June 22, 2016 Share Posted June 22, 2016 السلام عليكم نرجو منك مراجعة هالموضوع https://forum.multitheftauto.com/viewtopic.php?f ... 90#p897490 وشكراً Link to comment
FAHD+18 Posted June 22, 2016 Author Share Posted June 22, 2016 لعبا اللوحة مو تفتح ذ2 Link to comment
Adham Posted June 22, 2016 Share Posted June 22, 2016 مود كامل ض1 Window = guiCreateWindow(237, 197, 345, 181, "Panel", false) guiWindowSetSizable(Window, false) guiSetVisible (Window, false) rpr = guiCreateButton(9, 82, 136, 38, "Repair", false, Window) nitro = guiCreateButton(191, 82, 136, 38, "Nitro", false, Window) bindKey ( "F1", "down", function ( ) guiSetVisible ( Window, not guiGetVisible ( Window ) ) showCursor ( guiGetVisible ( Window ) ) end ) addEventHandler("onClientGUIClick",root, function () if source == rpr then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif source == nitro then triggerServerEvent ("buyNitro", getLocalPlayer()) end end ) local rootElement = getRootElement() addEvent("buyRepair", true) addEventHandler("buyRepair", rootElement, function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 1500 ) then takePlayerMoney(source, 1500) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("you buy rpr", source, 255, 255, 0, true) end end end ) addEvent("buyNitro", true) addEventHandler("buyNitro", rootElement, function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 500 ) then takePlayerMoney(source, 500) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("Nitro Successfully added", source, 255, 255, 0, true) end end ) Link to comment
Mr.R Posted June 22, 2016 Share Posted June 22, 2016 تفضل الاكواد مجربه #Client GUIEditor = { window = { } } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow ( 171, 199, 476, 149, "Car", false ) guiWindowSetSizable ( GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) Repair = guiCreateButton ( 40, 60, 162, 38, "Repair", false, GUIEditor.window[1] ) guiSetProperty ( Repair, "NormalTextColour", "FFAAAAAA") Nitro = guiCreateButton ( 257, 60, 162, 38, "Nitro", false, GUIEditor.window[1] ) guiSetProperty ( Nitro, "NormalTextColour", "FFAAAAAA" ) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler("onClientGUIClick",root, function ( ) if ( source == Repair ) then triggerServerEvent ( "buyRpr", localPlayer ) elseif ( source == Nitro ) then triggerServerEvent ( "buyNitro", localPlayer ) end end ) #Server addEvent ( "buyRpr", true) addEventHandler ( "buyRpr", root, function ( ) if ( isPedInVehicle ( source ) ) then if ( getPlayerMoney ( source ) >= 5000 ) then takePlayerMoney ( source, 5000 ) fixVehicle ( getPedOccupiedVehicle ( source ) ) outputChatBox ( getPlayerName ( source ) .." Has bought [ Repair ]", root, 255, 255, 255, true ) end end end ) addEvent ( "buyNitro", true) addEventHandler ( "buyNitro", root, function ( ) if ( isPedInVehicle ( source ) ) then if ( getPlayerMoney ( source ) >= 5000 ) then takePlayerMoney ( source, 5000 ) addVehicleUpgrade ( getPedOccupiedVehicle ( source ), 1010 ) outputChatBox ( getPlayerName ( source ) .." Has bought [ Nitro ]", root, 255, 255, 255, true ) end end end ) @Le3bA ناقصك اند , حطها سطر 24 ماهي معرفه rootElement و Link to comment
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