Markers, Marker = {
{ PositionMarker = { x, y, z }, PositionMove = { x, y, z } }
}, { }
for _, Value in pairs( Markers ) do
local aMarker = createMarker( Value['PositionMarker'][1], Value['PositionMarker'][2], Value['PositionMarker'][3], 'cylinder', 1 )
Marker[aMarker] = { Value['PositionMove'][1], Value['PositionMove'][2], Value['PositionMove'][3] }
end
addEventHandler( 'onMarkerHit', resourceRoot,
function( Player )
return ( Marker[source] ) and setElementPosition( Player, unpack( Marker[source] ) )
end )