TablePosition = {
{ -2067, 760, 30 },
{ -2621, 375, 6 },
{ -2084, 899, 64 },
{ -2153, 478, 35 },
}
function getRandomTablePosition( )
return unpack ( TablePosition [ math.random ( #TablePosition ) ] )
end
local marker = createMarker ( getRandomTablePosition( ) )
createBlipAttachedTo ( marker, 32 )
addEventHandler ( 'onMarkerHit', marker,
function ( hitPlayer )
if ( getElementType ( hitPlayer ) == 'player' ) then
givePlayerMoney ( hitPlayer, 500 )
setElementPosition ( source, getRandomTablePosition( ) )
end
end
)
بالتوفيق لك ..