Jump to content

abu5lf

Members
  • Posts

    2,193
  • Joined

  • Last visited

Everything posted by abu5lf

  1. جرب local guiRoot = getResourceGUIElement ( getThisResource () ) local marker = createMarker( 1552.8688964844, -1677.6, 15.2, "Cylinder", 1.5, 14, 64, 237, 150) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image= {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow(181,174,465,284,"Police Job",false) end windowjob = guiMyCwindow(301,250,"Police") guiWindowSetMovable(windowjob,false) guiWindowSetSizable(windowjob,false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(118,235,95,30,"282",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[2] = guiCreateButton(225,188,215,32,"Cancel",false,windowjob) GUIEditor_Memo[1] = guiCreateMemo(217,33,232,147,"If you want to join a Police job\nChoose a skin by clicking button\nor don't want be a cop? press\ncancel button.\n\n If you see a robber have stars\nhit him by using nightstick to arrest him! and take him to\nany blue icon in the radar to jail him.\n",false,windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Image[1] = guiCreateStaticImage(34,42,154,175,"images/Police.png",false,windowjob) GUIEditor_Button[3] = guiCreateButton(225,234,100,32,"283",false,windowjob) GUIEditor_Label[2] = guiCreateLabel(31,241,74,20,"Choose skin:",false,windowjob) GUIEditor_Button[4] = guiCreateButton(336,234,102,32,"284",false,windowjob) function Policejob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, Policejob) function Policejobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, Policejobleave) function removePoliceWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removePoliceWindow, false) addEventHandler ( 'onClientGUIClick', guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[1] ) ) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[3] ) ) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[4] ) ) end end )
  2. جربت الكود كامل ؟ local marker = createMarker( 1552.8688964844, -1677.6, 15.2, "Cylinder", 1.5, 14, 64, 237, 150) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image= {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow(181,174,465,284,"Police Job",false) end windowjob = guiMyCwindow(301,250,"Police") guiWindowSetMovable(windowjob,false) guiWindowSetSizable(windowjob,false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(118,235,95,30,"282",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[2] = guiCreateButton(225,188,215,32,"Cancel",false,windowjob) GUIEditor_Memo[1] = guiCreateMemo(217,33,232,147,"If you want to join a Police job\nChoose a skin by clicking button\nor don't want be a cop? press\ncancel button.\n\n If you see a robber have stars\nhit him by using nightstick to arrest him! and take him to\nany blue icon in the radar to jail him.\n",false,windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Image[1] = guiCreateStaticImage(34,42,154,175,"images/Police.png",false,windowjob) GUIEditor_Button[3] = guiCreateButton(225,234,100,32,"283",false,windowjob) GUIEditor_Label[2] = guiCreateLabel(31,241,74,20,"Choose skin:",false,windowjob) GUIEditor_Button[4] = guiCreateButton(336,234,102,32,"284",false,windowjob) function Policejob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, Policejob) function Policejobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, Policejobleave) function removePoliceWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removePoliceWindow, false) addEventHandler ( 'onClientGUIClick' guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[1] ) ) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[3] ) ) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[4] ) ) end end )
  3. addEventHandler("onClientVehicleExplode", getRootElement(), function() destroyElement ( source ) end) جربه الكود كلنت
  4. addEventHandler ( 'onClientGUIClick' guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[1] ) ) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[3] ) ) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[4] ) ) end end ) addEventHandler ("onResourceStart", resourceRoot, function () FaroukMarker = createMarker (1552.8688964844, -1676.6685791016, 15.1, "cylinder", 1, 1, 0, 0, 1) createBlipAttachedTo(FaroukMarker,56,2,0,255,0,0,0,300) createTeam ("Police", 17, 64, 237) end ) addEvent("setPolice", true) addEventHandler("setPolice",root,joinPolice) function joinPolice( id ) setPlayerTeam ( source, getTeamFromName ( 'Police' )) giveWeapon ( source, 3 ) setElementModel(source, id) setElementData( source, "Occupation", "Police", true ) outputChatBox("You joined Police team.",source,17,64,237) end جرب يمقن الكود خطأ
  5. طيب ورنا الي سويته
  6. على الرحب والسعة
  7. نفس كلامك بس العكس خخخ guiCreateStaticImage( 15,15,90,75, "weapon/1.png", false,tab2 ) weapButton_1 = guiCreateButton(15,88,90,30,"$150 deagle",false,tab2) guiSetProperty(weapButton_1, "NormalTextColour", "FF00FF00") guiSetProperty(weapButton_1, "HoverTextColour", "FF00FF00") طيب هو كان كذا من اول ههههههه
  8. https://wiki.multitheftauto.com/wiki/SetWeaponProperty
  9. stopSound and setTimer
  10. كيف حليت كود الالوان ؟
  11. حط كود التلوين قبل تسوي الزر فوقه يعني
  12. ورني الكود كامل و الكود تراه كلنت
  13. if Team and aTeam ^ يتحقق اذا كان موجود and Team == aTeam ^ التحقق اذا كانت متساوية حط التحقق قبل المساواة لأنه كيف تساوي شي غير موجود اصلا
  14. بالشرط ؟ Team ليه كررت اذا كان موجود واذا كان يساوي ذاه ذاك اتمنى وضحت
  15. توصلونه للازرق الي في الخريطة ويروح السجن
  16. عادي تضربه بعصى الشرطة ويمشي معك لازم يكون عنده نجوم
  17. الله يصلحك انت يوم انك تبي تسوي مود ماتقدر تسويه ليه ماتركبه وخلاص زائد انك دورت الكود الي تباه ولاقدرت
  18. وليه تبي تخترع ركب المود وخلاص
  19. ي بطل ليه ماتعدلها خذها نصيحة علمك نفسك قبل ماتعلم غيرك وخلك "صاكت" هذا يدل على انك باقي وفي النقاش صغير عقل
  20. حسن لاعد تساعد احد اذا منت فاهم اصلا وفيه غيرك يغطي حاول تتعلم قبل تساعد الناس
  21. هههههههههههههههههههههه
  22. الكود سيرفر u.u انسخ الكود كامل modelid = 980 addCommandHandler ( 'مركبة', function ( playerSource ) if isPedInVehicle ( playerSource ) then local object = createObject ( modelid, getElementPosition ( getPedOccupiedVehicle( playerSource ) ) ) attachElements ( object, getPedOccupiedVehicle ( playerSource ), 0, 0, 5 ) end end )
×
×
  • Create New...