Jump to content

تعديل ماركر


Recommended Posts

سلام عليكم شباب انا عندي ماركر عشان محد يطلع سيارة في البداية بس المود مو شغال

marker = createMarker(x,y,z "cylinder",40,255,0,0,255) 
 الماركر محطي الظهور حقه كامل عشان اعرف اذا المراكر شغال ولا لا 
    addEventHandler("onMarkerHit", root, 
    function(element) 
     if not isElement(element) and getElementType(element) == "Vehicle" then return end  
        if (source == marker) then 
          destroyElement(element) 
        end 
    end) 

اتمنى تصلحو الكود

منتظر الردووود :):):D

Link to comment
marker = createMarker ( x, y, z, "cylinder", 40, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker, 
    function ( element ) 
        if getElementType ( element ) == "vehicle" then 
            destroyElement ( element ) 
        end 
    end 
, false ) 

Link to comment
marker = createMarker ( x, y, z, "cylinder", 40, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker, 
    function ( element ) 
        if getElementType ( element ) == "vehicle" then 
            destroyElement ( element ) 
        end 
    end 
, false ) 

مو ضروري , false

لانك مو رابطه مع ماركر اخر

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...