Jump to content

الماركر لا يظهر


Recommended Posts

الاكواد كامله مقدر

بس بطرح الأشياء الي تفيد

الماركر

marker = createMarker ( 295.58554 ,-80.14142 ,1001.51563, "cylinder", 1.5, 255, 255, 0, 155 ) 

كلنت

        addEventHandler("onClientMarkerHit", root, 
    function(player1) 
    if (source == marker1) and (player1 == localPlayer) then 
    triggerServerEvent ("222",localPlayer,marker1,ped)  
    end 
    end 
    ) 

سيرفر

addEvent ("222", true) 
addEventHandler ("222", root, 
function () 
 setElementInterior ( source, 4 ,285.83646 ,-85.88068 ,1001.52289 ) 
 setElementInterior ( marker, 4 ,295.58554 ,-80.14142 ,1001.51563 ) 
 setElementInterior ( ped, 4 ,296.06375, -83.07696 ,1001.51563 ) 
    end 
    ) 

Link to comment
الاكواد كامله مقدر

بس بطرح الأشياء الي تفيد

الماركر

marker = createMarker ( 295.58554 ,-80.14142 ,1001.51563, "cylinder", 1.5, 255, 255, 0, 155 ) 

كلنت

        addEventHandler("onClientMarkerHit", root, 
    function(player1) 
    if (source == marker1) and (player1 == localPlayer) then 
    triggerServerEvent ("222",localPlayer,marker1,ped)  
    end 
    end 
    ) 

سيرفر

addEvent ("222", true) 
addEventHandler ("222", root, 
function () 
 setElementInterior ( source, 4 ,285.83646 ,-85.88068 ,1001.52289 ) 
 setElementInterior ( marker, 4 ,295.58554 ,-80.14142 ,1001.51563 ) 
 setElementInterior ( ped, 4 ,296.06375, -83.07696 ,1001.51563 ) 
    end 
    ) 

marker = createMarker( 295.58554, -80.14142, 1001.51563, "cylinder", 1.5, 255, 255, 0, 155 ) 
setElementInterior( marker, 4 ) 
  
addEventHandler( "onClientMarkerHit", marker, 
function( HitPlayer ) 
    if ( HitPlayer == localPlayer ) then 
        -- Your Code ... 
    end 
end ) 
Link to comment
-- Client # 
  
addEventHandler("onClientMarkerHit", root, 
    function(player1) 
    if (source == marker1) and (player1 == localPlayer) then 
    triggerServerEvent ("222",localPlayer,localPlayer,marker1,ped) 
    end 
    end 
    ) 
     
-- Server # 
     
addEvent ("222", true) 
  
addEventHandler ("222", root, 
  
function ( player ,Marker , Ped) 
  
 setElementInterior ( player, 4 ,285.83646 ,-85.88068 ,1001.52289 ) 
 setElementInterior ( Marker, 4 ,295.58554 ,-80.14142 ,1001.51563 ) 
 setElementInterior ( Ped, 4 ,296.06375, -83.07696 ,1001.51563 ) 
  
    end 
    ) 

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