Jump to content

M[ROYAL]R

Members
  • Posts

    161
  • Joined

  • Last visited

Posts posted by M[ROYAL]R

  1. جرب ده انا مجربتهوش

            addEvent("displayclothes",true) 
        addEventHandler("displayclothes",getRootElement(), 
        function(style) 
            triggerClientEvent(client,"displayClothOn",client,clothes,style) 
        end) 
        local clothtable = {} 
          
          
        addEventHandler("onMarkerHit",getRootElement(), 
        function(hitElement) 
            if (source == clothmarker1) or (source == clothmarker2) or (source == clothmarker3) then 
                if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then 
                if not getTeamName(getPlayerTeam(source)) == "Police" and not getTeamName(getPlayerTeam(source)) == "Medic" then 
                    triggerClientEvent(hitElement,"showDemClothGui",hitElement) 
                end 
            end 
            end 
        end 
        ) 
         
    

  2. حبيبي انت كذا تحوسنا وتحوس الي يبي يساعد يعني تحط كود خطاء ونصححه تروح تعدل ع الي فوق وبعدين تطلب طلب ثاني

    وتحطه خطاء وبعدين تصححه وتمشي

    ي ليت تساعدنا عشان نقدر نسآعدك !

    +1111111

  3. يا اخى وضح انت ما قولت مشكلتك مشان نحلها ؟؟؟؟؟

    الوحة ماتضهر !

    ما جربت جرب

    addEventHandler ( "onClientResourceStart", resourceRoot, function (     ) 
      
            GUIEditor.window[1] = guiCreateWindow(336, 137, 402, 480, "VIP Panel", false) 
            guiWindowSetSizable(GUIEditor.window[1], false) 
      
            GUIEditor.label[1] = guiCreateLabel(10, 446, 156, 30, "Created By #Monster", false, GUIEditor.window[1]) 
            guiSetFont(GUIEditor.label[1], "default-small") 
            guiLabelSetColor(GUIEditor.label[1], 254, 0, 0) 
            Vbtn = guiCreateButton(23, 72, 126, 49, "CreateVehicle", false, GUIEditor.window[1]) 
            guiSetProperty(Vbtn, "NormalTextColour", "FFAAAAAA") 
            Dmg = guiCreateButton(251, 72, 126, 49, "No Vehicle Dmg", false, GUIEditor.window[1]) 
            guiSetProperty(Dmg, "NormalTextColour", "FFAAAAAA") 
            Weapon = guiCreateButton(23, 178, 126, 49, "VIP Weapons", false, GUIEditor.window[1]) 
            guiSetProperty(Weapon, "NormalTextColour", "FFAAAAAA") 
            Stats = guiCreateButton(251, 178, 126, 49, "VIP Stats", false, GUIEditor.window[1]) 
            guiSetProperty(Stats, "NormalTextColour", "FFAAAAAA") 
            Skin = guiCreateButton(23, 281, 126, 49, "VIP Skin", false, GUIEditor.window[1]) 
            guiSetProperty(Skin, "NormalTextColour", "FFAAAAAA") 
            Health = guiCreateButton(251, 281, 126, 49, "VIP Health / Armor", false, GUIEditor.window[1]) 
            guiSetProperty(Health, "NormalTextColour", "FFAAAAAA") 
            Close = guiCreateButton(40, 361, 317, 49, "Close VIP Panel ", false, GUIEditor.window[1]) 
            guiSetProperty(Close, "NormalTextColour", "FFAAAAAA")     
    end ) 
    function royal() 
        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("F5", "down", royal) 
      
    addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
        if ( source == Vbtn ) then 
                triggerServerEvent ( "GiveCar", localPlayer  ) 
            end 
    end ) 
    

  4. addEvent("displayclothes",true) 
    addEventHandler("displayclothes",getRootElement(), 
    function(style) 
        triggerClientEvent(client,"displayClothOn",client,clothes,style) 
    end) 
    local clothtable = {} 
      
      
    addEventHandler("onMarkerHit",getRootElement(), 
    function(hitElement) 
        if (source == clothmarker1) or (source == clothmarker2) or (source == clothmarker3) then 
            if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then 
                if getPlayerTeam ( hitElement ) == getTeamFromName ( "Police" ) or  getPlayerTeam ( hitElement ) == getTeamFromName ( "Medic" ) then return end 
                triggerClientEvent(hitElement,"showDemClothGui",hitElement) 
            end 
        end 
    end) 
    

    إلي ضفته سطر 13

    يا كلاسيك انا ابيه يفهم مو ياخد كوبى باس :roll:

  5. شوف مثال صغير

         
        addEventHandler('onMarkerHit',markerDoor1, 
        function() 
        if not getTeamName(getPlayerTeam(localPlayer)) == "Police" then -- التحقق انه ب اى تيم غير الشرطه 
        guiSetVisible ( GUIEditor.windows[1] , true ) -- يفتح النافذه 
        showCursor(true) -- يشغل الماوس 
        end 
        end 
        ) 
    

    يا رب تكون المعلومة وصلت

  6. ألسلام عليكم اليوم كنت اتصفح فى مودات mta الى فى ملف gamemode

    لاحظت شئ غريب هو

    Window = GuiWindow(12, -4, 788, 105, "win", false) 
    

    هذه غريب عن guieditor

    حتى الأوامر حقة

    Window:setSizable(false) 
    

    لا اطول لو فى مود يسوى مثل هيك يا ليت الى يعرف ما يبخل

    و لو ما فى و فى طريقة او دروس ممكن الرابط :D

    اسف انى طولت

×
×
  • Create New...