SWAT-M7MD Posted June 7, 2019 Share Posted June 7, 2019 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 ابي لو شخص دخل للماركر و هو بسيارة بيروح لاحداثيات معينة ساعدوني ناس امبارح بس ما اشتغل Link to comment
+Source|> Posted June 7, 2019 Share Posted June 7, 2019 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 ) 1 Link to comment
KillerX Posted June 8, 2019 Share Posted June 8, 2019 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 ) 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