Drakath Posted July 28, 2012 Share Posted July 28, 2012 Hello, I want to ask how can I make a marker that changes skin? Example players goes to that marker and his skin changes to 285 Link to comment
Guest Guest4401 Posted July 28, 2012 Share Posted July 28, 2012 --server local marker = createMarker(123,456,789) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == "player" then setElementModel(player,285) end end ) Link to comment
Drakath Posted July 28, 2012 Author Share Posted July 28, 2012 Why is this marker so huge? How to make it smaller? Link to comment
TAPL Posted July 28, 2012 Share Posted July 28, 2012 Why is this marker so huge? How to make it smaller? local marker = createMarker(123,456,789,"cylinder",1.5,255,255,255,255) -- 1.5 is the size you can change it Link to comment
Drakath Posted July 28, 2012 Author Share Posted July 28, 2012 How can I make it in interior? Link to comment
TAPL Posted July 28, 2012 Share Posted July 28, 2012 How can I make it in interior? setElementInterior(marker,ID) -- change the ID Link to comment
TAPL Posted July 28, 2012 Share Posted July 28, 2012 Where do I put it? below this local marker = createMarker(123,456,789,"cylinder",1.5,255,255,255,255) -- 1.5 is the size you can change it Link to comment
Smart. Posted July 28, 2012 Share Posted July 28, 2012 local marker = createMarker(123,456,789,"cylinder",1.5,255,255,255,255) -- 1.5 is the size you can change it setElementInterior(marker, interiorID) Link to comment
Drakath Posted July 28, 2012 Author Share Posted July 28, 2012 I replaced ID with interior 5 but still don't work... Link to comment
Drakath Posted July 28, 2012 Author Share Posted July 28, 2012 local marker = createMarker(1272,-814,1089, "cylinder",1,255,255,255,255) setElementInterior(marker,5) addEventHandler("onMarkerHit",marker, function(player) if getElementType(player) == "player" then setElementModel(player,29) end end ) Link to comment
Andreas. Posted July 28, 2012 Share Posted July 28, 2012 You might need to change the dimension of the marker if you're in another dimension. setElementDimension Link to comment
Andreas. Posted July 28, 2012 Share Posted July 28, 2012 Thanks, now it works. You're welcome 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