Sign in to follow this  
SWAT-M7MD

ساعدوني

Recommended Posts

salhMark = createMarker (108.4, 421.5, 1.7,'cylinder',2.0, 255, 0, 0, 0)


addEventHandler("onClientMarkerHit",salhMark,
function ( hitMarker )
		if isPedInVehicle ( hitMarker ) then
local vehicle = getPedOccupiedVehicle(hitMarker)
    if ( vehicle ) then
setElementPosition(vehicle, 106.6, 405.99, 1.76)	
	end
      
		end
end

ابي لو شخص دخل للماركر و هو بسيارة بيروح لاحداثيات معينة

ساعدوني ناس امبارح بس ما اشتغل

Share this post


Link to post
54 minutes ago, SWAT-M7MD said:

salhMark = createMarker (108.4, 421.5, 1.7,'cylinder',2.0, 255, 0, 0, 0)


addEventHandler("onClientMarkerHit",salhMark,
function ( hitMarker )
		if isPedInVehicle ( hitMarker ) then
local vehicle = getPedOccupiedVehicle(hitMarker)
    if ( vehicle ) then
setElementPosition(vehicle, 106.6, 405.99, 1.76)	
	end
      
		end
end

ابي لو شخص دخل للماركر و هو بسيارة بيروح لاحداثيات معينة

ساعدوني ناس امبارح بس ما اشتغل

salhMark = createMarker ( 2022.85474, 1544.96985, 10.82158 -1,'cylinder',2.0, 255, 0, 0, 255 )


addEventHandler( "onClientMarkerHit", salhMark,
function ( hitMarker )
local vehicle = getPedOccupiedVehicle( hitMarker )
	if hitMarker == localPlayer then
    if ( vehicle ) then
		setElementPosition( vehicle, 106.6, 405.99, 1.76 )
	end
	end
end
)

 

  • Like 1

Share this post


Link to post
salhMark = createMarker( 108.4 , 421.5 , 1.7 , 'cylinder', 2.0 , 255 , 0 , 0 , 0 )

addEventHandler( "onClientMarkerHit" , salhMark , 
    function( hitElement )
        if( getElementType( hitElement ) == "vehicle" ) then 
            local controller = getVehicleOccupant( hitElement , 0 )
            if( controller ) then 
                setElementPosition( hitElement , 106.6 , 405.99 , 1.76 )
            end
        end
     end
)    

 

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.