Jump to content

xAbO-d7mY

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by xAbO-d7mY

  1. م ضبط ذذ dxDrawText("- User : "..(getElementData(localPlayer, "accName") or ""), 433, 170, 638, 234, tocolor(255, 255, 255, 255), 1, "default-bold", "left", "center", false, false, false, true, false)
  2. انا ابية للـ Dx dxDrawText("- User : ", 433, 170, 638, 234, tocolor(255, 255, 255, 255), 1, "default-bold", "left", "center", false, false, false, true, false) لان حاولت أحول حق الـ gui للـ Dx م عرفت كيف < >
  3. السلام عليكم انا عندي ذذ الكود : addEventHandler("onClientRender", getRootElement(), function () if guiGetVisible(GUIEditor_Window[1],true) then guiSetText(GUIEditor_Label[1],"# [ Yuor Account ] : "..getPlayerAccount(getLocalPlayer())) end end) بس مو شغال مدري لية :\
  4. +1 وكيف تحط الـ Vehicle في الكولمن 1 و الكولمن 1 حق الارقام 1- 2- 3- الخخ ..
  5. وش يظهر لك في الديبوق ؟
  6. خلاص خلاص عرفت كيف < > شكراً ع الإفادة
  7. تستهبل أنت م أفدتني ب شيء أبداً < > أنا أبي الـ شفافية حق الزر ذا {'btn', id='kill', onclick=killLocalPlayer}, يله كيف أسويه ف الزر ذذ
  8. مو معدل الفري روم ذذ كامل أنا بسوي واحد من جديد !
  9. ججرب ذذ طيب -- Client Side # cars = { {'سوناتا', 598}, {'name', 597}, {'name', 596}, {'name', 523}, {'name', 599}, {'name', 427}, --{'carName', carID}, } Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) guiSetVisible(Wnd,false) centerWindow(Wnd) guiWindowSetMovable(Wnd, false) guiWindowSetSizable(Wnd, false) guiSetAlpha(Wnd, 1.00) guiSetProperty(Wnd, "CaptionColour", "FF0388F8") gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) guiSetFont(button, "default-bold-small") guiSetProperty(button, "NormalTextColour", "FFFBE600") label = guiCreateLabel(8, 290, 153, 21, "Created By Mr.Pres[T]ege ", false, Wnd) guiSetFont(label, "default-bold-small") guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) for i,v in ipairs (cars) do local row = guiGridListAddRow ( gridlist) guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) guiGridListSetItemData ( gridlist, row, 2, v[2] ) guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiSetFont(gridlist,"default-bold-small") end addEventHandler("onClientGUIClick",button, function () local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh) playSoundFrontEnd(33) guiSetVisible(Wnd,false) showCursor(false) end,false) local marker = createMarker (x,y,z, "cylinder", 1.7, 0, 255, 0, 100 ) -- الماركر واحداثياته addEventHandler("onClientMarkerHit", root, function(hit) if source == marker then -- الماركر if hit == localPlayer then -- يفتح للاعب نفسة guiSetVisible(Wnd,true) -- يفتح النافذة showCursor(true) -- يشغل الماوس (المؤشر) end end end) ششوف الحين كيف ؟
  10. ججرب -- local Key = "F6" -- Client Side # cars = { {'سوناتا', 598}, {'name', 597}, {'name', 596}, {'name', 523}, {'name', 599}, {'name', 427}, --{'carName', carID}, } Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) guiSetVisible(Wnd,false) centerWindow(Wnd) guiWindowSetMovable(Wnd, false) guiWindowSetSizable(Wnd, false) guiSetAlpha(Wnd, 1.00) guiSetProperty(Wnd, "CaptionColour", "FF0388F8") gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) guiSetFont(button, "default-bold-small") guiSetProperty(button, "NormalTextColour", "FFFBE600") label = guiCreateLabel(8, 290, 153, 21, "Created By Mr.Pres[T]ege ", false, Wnd) guiSetFont(label, "default-bold-small") guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) for i,v in ipairs (cars) do local row = guiGridListAddRow ( gridlist) guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) guiGridListSetItemData ( gridlist, row, 2, v[2] ) guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiSetFont(gridlist,"default-bold-small") end addEventHandler("onClientGUIClick",button, function () local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh) playSoundFrontEnd(33) guiSetVisible(Wnd,false) showCursor(false) end,false) bindKey(Key,"down", function () guiSetVisible(Wnd,not guiGetVisible(Wnd)) showCursor(guiGetVisible(Wnd)) if ( guiGetVisible(Wnd) == true ) then guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) end end ) local marker = createMarker (x,y,z, "cylinder", 1.7, 0, 255, 0, 100 ) -- الماركر واحداثياته addEventHandler("onClientMarkerHit", root, function(hit) if source == marker then -- الماركر if hit == localPlayer then -- يفتح للاعب نفسة guiSetVisible(Wnd,true) -- يفتح النافذة showCursor(true) -- يشغل الماوس (المؤشر) end end end) ب النسبة لـ أسامي السيارات أتوقع ممتازة كذآ
  11. السلام عليكم ورحمة الله وبركاتة شباب أبي مساعدة في الفري روم كيف أسوي الـ Alpha حق لوحة الفري روم والازرار حقتها , # سويت للازرار كذا بس م ضبطت < > guiSetAlpha(getControl( wndMain,'kill', 0.7)
  12. تم شكراً ع المساعدة
  13. addEventHandler("onClientGUIClick",root, function() if(source== أسم الزر )then guiSetEnabled(أسم الزر,false) setTimer(guiSetEnabled,10000,1,أسم الزر,true) elseif(source== أسم الزر2 )then guiSetEnabled(أسم الزر2,false) setTimer(guiSetEnabled,10000,1,أسم الزر2,true) end end)
  14. طيب جربت أسوية بس ما اشتغل < > addEventHandler("onClientRender", getRootElement(), function () dxDrawText("- Name : "..getPlayerName(getLocalPlayer())", 433, 204, 638, 234, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "center", false, false, false, false, false) end)
  15. السلآم عليكم ورحمة آلله وبركاتة أنا اليوم أبي كود حق الـ DX Text اللي هو مثلاً عندي #NAME : أبي الأسم يجي طبعاً ذذ ف الدي أكس مو ف الليبل فرقوآ ^ أبي طريقة الكود كيف تكون وزي كذآ لاني حاولت و م ضبطت
  16. أتوقع قصدك أنه يكون محفوظ , SetElementData يعني تخرج من السيرفر وتدخل يكون ثابت م يروح
×
×
  • Create New...