max-mohammed Posted May 26, 2014 Share Posted May 26, 2014 سلام عليكم شباب انا عندي ماركر عشان محد يطلع سيارة في البداية بس المود مو شغال 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) اتمنى تصلحو الكود منتظر الردووود Link to comment
3NAD Posted May 26, 2014 Share Posted May 26, 2014 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
max-mohammed Posted May 26, 2014 Author Share Posted May 26, 2014 مشكوور + يعطيك العافية Link to comment
AboShanab Posted May 27, 2014 Share Posted May 27, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now