عندك غلط بسيط .. :
local fx,fy,fz = posx,posy,posz
local tx,ty,tz = posx,posy,posz
local pMarker = createMarker ( fx,fy,fz )
addEventHandler ( 'onMarkerHit',pMarker,
function ( hitElement )
if ( hitElement and getElementType ( hitElement ) == 'player' and not isPedInVehicle( hitElement ) ) then
setElementPosition ( hitElement,tx,ty,tz )
end
end
)
صحيح نسيت أضيف الالمنت "isPedInVehicle"
..