Jump to content

something wrong is happening


Karoffe

Recommended Posts

Okay, idk what is happening i cannot make the "onMarkerHit" event works idk why

local myMarker = createMarker(-2507.72241, -619.67261, 131.56250, 'cylinder', 2.0, 255, 0, 0, 150) -- create myMarker 
function MarkerHit() -- define MarkerHit function for the handler 
    outputChatBox( "inside myMarker") -- attach the element's type with the text, and output it 
end 
addEventHandler ( "onMarkerHit", myMarker, MarkerHit ) 

that's the code of the wiki, but removed some lines to make sure... it is not working thought the problem may be in the meta or the file name so i changed the EventHandler to onResourceStart and it worked..^^

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...