SaedAmer Posted May 16, 2016 Posted May 16, 2016 (edited) السلام عليكم ورحمة الله و بركاته معي بطن يصلح السيارة اول ما اضغط عليه الاكواد كلنت addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[3] ) then triggerServerEvent("FixCar",root) end end ) سيرفر --Server addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) Edited May 18, 2016 by Guest
#|_oskar_|# Posted May 16, 2016 Posted May 16, 2016 addEventHandler("onClientGUIClick",resourceRoot,function () if ( source == GUIEditor.button[3] ) then triggerServerEvent ( "FixCar",localPlayer) end end) addEvent( "FixCar", true ) addEventHandler( "FixCar",root,function () local Veh = getPedOccupiedVehicle ( source ) if Veh then fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end) لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
SaedAmer Posted May 16, 2016 Author Posted May 16, 2016 اوك شكرا اخي ----- طيب دلوقتي معاية كود السهم الي يظهر فوق السيارة لما بضغط علي السيك بوكس يظهر جنب السيارة في الشارع مب فوق السيارة الاكواد كلنت -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) سيرفر --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 3, zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) end )
#|_oskar_|# Posted May 16, 2016 Posted May 16, 2016 انا سويتلك الكود من قبل وكان شغال تمام مافي شئ ؟ لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
SaedAmer Posted May 16, 2016 Author Posted May 16, 2016 انا سويتلك الكود من قبل وكان شغال تمام مافي شئ ؟ يب اخي بس ذا الكود ضاع مني
#|_oskar_|# Posted May 16, 2016 Posted May 16, 2016 Object = { } addEvent('Create', true) addEventHandler('Create',root,function ( ) local vehicle = getPedOccupiedVehicle ( source ) if vehicle then outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) attachElementToElement(Object[source],vehicle, 0, 0,1.5) end end) لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
SaedAmer Posted May 16, 2016 Author Posted May 16, 2016 شكرا اخي ---------- اخر شئ عاوز الي يضغط علي الشيك بوكس العربية تطلع دخان و لما يلغي التحديد الدخان يختفي الصور
#|_oskar_|# Posted May 16, 2016 Posted May 16, 2016 اطرح محاولتك لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
#|_oskar_|# Posted May 16, 2016 Posted May 16, 2016 حاول تسويه getElementPosition -- تجيب احداثيات السياره createObject -- تسوي انشاء للاوبجكت عشان تظهر الدخان attachElements -- تلصق الاوبجكت بالسياره لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
#|_oskar_|# Posted May 16, 2016 Posted May 16, 2016 هو الاوبجكت بس ناسي الايدي حقه لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
SaedAmer Posted May 17, 2016 Author Posted May 17, 2016 اوسكار طيب دلوقتي ينفع اخي لما اضغط علي شيك بوكس تظهر لوحة ؟ و معي لوحة حبيت اضيف بوطن زياده عملت البوطن و ركبتو بالوحة بس مش بيظهر ايه حلها ؟
Mr.CoR Posted May 17, 2016 Posted May 17, 2016 guiCheckBoxGetSelected guiCheckBoxSetSelected شوف امثله الويكي وحاول جرب شوفه ينفع ولا لا وبالنسبة للإضافة الزر انصحك تضيف الزر بإستخدام ال guieditor لان ممكن تغلط بالحسابات اذا بتسوي الزر برمجياً ومايظهر لك الزر بالتوفيق I'am Back MTA sa World ! Spoiler
SaedAmer Posted May 17, 2016 Author Posted May 17, 2016 كور انا جرب محاولتين بس ما بعرف صح ولا لا المحاولة الاولة addEventHandler( 'onClientGUIClick', root, function checkboxBleepWhenClicked() if ( getElementType(source) == "GUIEditor.checkbox[5]" ) then guiSetVisible( GUIEditor.window[2], true) guiSetInputEnabled(true) showCursor(true) then guiSetVisible( GUIEditor.window[1], false) end end ) الثانية addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[5] and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true then guiSetVisible( GUIEditor.window[2], true) elseif source == GUIEditor.checkbox[5] and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false then guiSetVisible( GUIEditor.window[2], false) end end ) بالنسبة للبطن ينفع ارفع اكواد الوحة تاني علي guieditor و لو ينفع كيف ؟
#|_oskar_|# Posted May 18, 2016 Posted May 18, 2016 اطرح كود اللوحه لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
SaedAmer Posted May 18, 2016 Author Posted May 18, 2016 GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(29, 140, 99, 18, "-< تفعيل التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 5, 5) end )
#|_oskar_|# Posted May 18, 2016 Posted May 18, 2016 GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.button[4] = guiCreateButton(10+95, 140, 95, 17, "-< حذف التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 5, 5) end ) لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
SaedAmer Posted May 18, 2016 Author Posted May 18, 2016 هو ايه الكود الي انت ادتهوني ده ؟؟ انا عاوز كود اول ما احدد شيك بوكس تظهر اللوحة دي GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(29, 140, 99, 18, "-< تفعيل التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 5, 5) end )
Adham Posted May 18, 2016 Posted May 18, 2016 جرب ذا GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.button[4] = guiCreateButton(10+95, 140, 95, 17, "-< حذف التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 5, 5) end ) addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[5] and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true then guiSetVisible( GUIEditor.window[2], true) elseif source == GUIEditor.checkbox[5] and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false then guiSetVisible( GUIEditor.window[2], false) end end قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
#|_oskar_|# Posted May 18, 2016 Posted May 18, 2016 هو ايه الكود الي انت ادتهوني ده ؟؟انا عاوز كود اول ما احدد شيك بوكس تظهر اللوحة دي احسبك عايز تضيف زر للوحه بالنسبه للتحد التشيك بوكس if guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true then guiSetVisible( GUIEditor.window[1], true) -- لو حددت ع التشيك بوكس يفتح اللوحه end if guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false then guiSetVisible( GUIEditor.window[1], false) -- لو شيلت التحديد يقفل اللوحه end لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
SaedAmer Posted May 18, 2016 Author Posted May 18, 2016 مشكور اخي طيب دلوقتي انا معاية ايدت عاوز الي يتكتب في الادت ده يعمل تاج مثال *[هنا الكلام الي يتحط في الادت -- يظهر هنا] SaedAmer: و اديت تاني يغر لون الكلام في الشات مثال *[saed] SaedAemer: هنا لون الكلام يتغير و بطن يفعل الاكواد السابقة
#|_oskar_|# Posted May 18, 2016 Posted May 18, 2016 GUIEditor = { button = {}, window = {}, label = {}, edit = {}} local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.button[4] = guiCreateButton(10+95, 140, 95, 17, "-< حذف التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 5, 5) ----- addEventHandler("onClientGUIClick",root,function() if(source == GUIEditor.button[3]) then if guiGetText (GUIEditor.edit[1]) ~= '' then setElementData (localPlayer,'tag',guiGetText (GUIEditor.edit[1])) end elseif(source == GUIEditor.button[4]) then setElementData (localPlayer,'tag',false) end end) --- addEventHandler("onPlayerChat",root,function (msg) local tag = getElementData(source,"tag") or 'Guest' outputChatBox(tag ..' '.. getPlayerName(source) .. ' : '.. msg,root, r, g, b, true) return cancelEvent() end) لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
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