Jump to content

help please. marker


bartje01

Recommended Posts

Hey guys. I have a marker and it shows a message. But I only want it to show it to the person that stands in the marker and not to everyone.

  
local myMarker = createMarker( 1368.49, -1279.94, 13.54, 'cylinder', 2.0, 255, 0, 0, 150 ) 
  
function MarkerHit( hitElement, matchingDimension,player ) 
        if getElementType( hitElement ) == "player" then 
          outputChatBox ( "You have picked up a Nite Stick.", player ) 
         
        end 
end 
addEventHandler( "onMarkerHit", myMarker, MarkerHit ) 
  

Ty

Link to comment
local myMarker = createMarker( 1368.49, -1279.94, 13.54, 'cylinder', 2.0, 255, 0, 0, 150 ) 
  
function MarkerHit( hitElement, matchingDimension,player ) 
        if getElementType( hitElement ) == "player" then 
          outputChatBox ( "You have picked up a Nite Stick.", hitElement ) 
        
        end 
end 
addEventHandler( "onMarkerHit", myMarker, MarkerHit ) 

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...