MR:X Posted October 16, 2012 Share Posted October 16, 2012 السلام عليكم ورحمة الله وبركاتة شباب الحين سويت لوحة للريس بس ابي اربطها بزر اصلاح والتعديل من انقلاب الموتر ! ذذ مثال : addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then end end) ابية يكون محول لاصلاح السيارة و التعديل للانقلاب واذا الموضوع مكلف لا لاترد واسفهني Link to comment
MR.S3D Posted October 16, 2012 Share Posted October 16, 2012 ياليت تبحث قبل ماتطلب طلب viewtopic.php?f=119&t=48964&p=480898&hilit=%D8%A7%D8%B5%D9%84%D8%A7%D8%AD#p480898 Link to comment
MR:X Posted October 16, 2012 Author Share Posted October 16, 2012 تسلم اخوي اذا ماعليك كلافة كود اخفاء السيارة والنيترو بس ابيهم نفس الاصلاح والانقلاب لاهنت Link to comment
MR:X Posted October 16, 2012 Author Share Posted October 16, 2012 جربت سويت كود مثل هذآ بس مآشتغل كلنـت addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[3] ) then triggerServerEvent("buyNitro",getLocalPlayer()) end end ) سيرفر addEvent("buyNitro",true) addEventHandler("buyNitro",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 800) then takePlayerMoney(source,800) AddNitro = getVehicleRotation (getPedOccupiedVehicle(source)) local name = getPlayerName(source) outputChatBox ( "#cccccc*** [ #FFFFFF" .. name .. " #cccccc] Has Bought Nitro By : "..price.Flip.."$ ***", getRootElement(), 0, 0, 0, true ) else outputChatBox("* You may not have enough Money!", source, 255, 0, 0, true) end end ) Link to comment
Mr.T9 Posted October 16, 2012 Share Posted October 16, 2012 جربت سويت كود مثل هذآ بس مآشتغلكلنـت addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[3] ) then triggerServerEvent("buyNitro",getLocalPlayer()) end end ) سيرفر addEvent("buyNitro",true) addEventHandler("buyNitro",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 800) then takePlayerMoney(source,800) AddNitro = getVehicleRotation (getPedOccupiedVehicle(source)) local name = getPlayerName(source) outputChatBox ( "#cccccc*** [ #FFFFFF" .. name .. " #cccccc] Has Bought Nitro By : "..price.Flip.."$ ***", getRootElement(), 0, 0, 0, true ) else outputChatBox("* You may not have enough Money!", source, 255, 0, 0, true) end end ) FIx server addEvent("buyNitro",true) addEventHandler("buyNitro",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 800) then takePlayerMoney(source,800) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) local name = getPlayerName(source) outputChatBox ( "#cccccc*** [ #FFFFFF" .. name .. " #cccccc] Has Bought Nitro ***", getRootElement(), 0, 0, 0, true ) else outputChatBox("* You may not have enough Money!", source, 255, 0, 0, true) end end ) client addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[3] ) then triggerServerEvent("buyNitro",getLocalPlayer()) end end ) Link to comment
MR:X Posted October 16, 2012 Author Share Posted October 16, 2012 تسلم اخوي والله انكك كفو بس بقي الاخير اخفاء السيارة وننتهي من كل شيء ونغلق الموضوع Link to comment
MR:X Posted October 16, 2012 Author Share Posted October 16, 2012 ^^ ابي الكود ولا حصلتة وصعبه اعدل اخفاء والانجليزي مو مرة ذذ Link to comment
Mr.T9 Posted October 16, 2012 Share Posted October 16, 2012 عشانك جديد بعطيك الكود هاذي المرة جاهز addEvent("buyInvisible", true) addEventHandler("buyInvisible", getRootElement(), function() if ( getPlayerMoney (source) >= 20000 ) then takePlayerMoney(source, 20000) outputChatBox("Others cant see you now.", source, 255, 255, 0, true) setElementAlpha(getPedOccupiedVehicle(source),0) setElementAlpha(source,0) setPlayerNametagShowing(source, false) setTimer( setElementAlpha, 60000, 1, source, 500, true) setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end ) عليك التعديل Link to comment
Mr.T9 Posted October 16, 2012 Share Posted October 16, 2012 addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[4] ) then triggerServerEvent("buyInvisible",getLocalPlayer()) end end ) Link to comment
MR:X Posted October 16, 2012 Author Share Posted October 16, 2012 تسلم كفو والله انكك مبدع وربي يغلق 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