gghvcffcv Posted June 23, 2014 Share Posted June 23, 2014 local Marker = createMarker ( 2048.68848, 1474.93945, 9.67188, "cylinder", 10.0, 155, 0, 0, 150, getRootElement( ) ) function elLoco() setPlayerWantedLevel ( source, 3 ) end addEventHandler ("onMarkerHit", Marker, elLoco) what's wrong Link to comment
Baseplate Posted June 23, 2014 Share Posted June 23, 2014 The source of onMarkerHit event is the marker that was hit, you should use onMarkerHit parameters. local Marker = createMarker ( 2048.68848, 1474.93945, 9.67188, "cylinder", 10.0, 155, 0, 0, 150) -- Isn't 10 as a size kinda too much? function elLoco(hElement) setPlayerWantedLevel(hElement, 3) end addEventHandler ("onMarkerHit", Marker, elLoco) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now