Jump to content

بحل مشكله ماركر بلوحه


aL.Kfo

Recommended Posts

مرحبا شباب

اليوم حاولت اسوي ماركر يفتح بلوحه بس م ضبط الاكواد

client

   marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) 
      
    addEventHandler("onClientMarkerHit",marker, 
      function (player) 
        if (getElementType (player) == "player") and (player == localPlayer)  then 
        showCursor(true) 
        guiSetVisible(mmm,true) 
             end 
        end 
    ) 

client1.lua

  
GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(262, 200, 344, 289, "mmm", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(75, 113, 122, 68, "", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(144, 203, 116, 53, "", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(243, 94, 91, 68, "", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(61, 22, 168, 62, "", false, GUIEditor.window[1])     
    end 
) 
  

meta.xml

     "mm" type="script" name="script" description="1.0" /> 
     

Link to comment

خله ملف واحد

GUIEditor = { 
    button = {}, 
    window = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(262, 200, 344, 289, "mmm", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1],false) 
        GUIEditor.button[1] = guiCreateButton(75, 113, 122, 68, "", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(144, 203, 116, 53, "", false, GUIEditor.window[1]) 
        GUIEditor.button[3] = guiCreateButton(243, 94, 91, 68, "", false, GUIEditor.window[1]) 
        GUIEditor.button[4] = guiCreateButton(61, 22, 168, 62, "", false, GUIEditor.window[1])     
    end 
) 
  
marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) 
  
addEventHandler("onClientMarkerHit",marker, 
    function (player) 
        if player == localPlayer then 
            showCursor(true) 
            guiSetVisible(GUIEditor.window[1],true) 
        end 
    end 
) 

و الميتا كذا اذا ما حددت النوع يكون سيرفر اذا كان كلينت لازم تكتب كلينت

     "mm" type="script" name="script" description="1.0" /> 
     

Edited by Guest
Link to comment
^ اللوحه اساسا مفتوحه واذا لمس الماركر تفتحها ._.

عدلت الكود جرب الحين

شدخلني اجرب انا ؟ انا طالب الكود مثلا ؟

حبيت انبهك لا اكثر ذذ

اوووهه والله ما انتبهت انه انت حسبتك الاخ الي طلب

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...