Hell-Mate Posted March 7, 2014 Share Posted March 7, 2014 Hello community ,, is there is a function like createMarkerAttachedTo ? to create a marker attached to an element or player ? Link to comment
pa3ck Posted March 7, 2014 Share Posted March 7, 2014 No, but its just one more line to do it. Use attachElements or use: --client function createMarkerAttachedTo( type, size, r, g, b, a, element ) if type and size and r and g and b and a and isElement ( element ) then local marker = createMarker ( 0, 0, 0, type, size, r, g, b, a ) attachElements ( marker, element, 0, 0, 0 ) else outputDebugString ( "Bad / missing argument(s) @ 'createMarkerAttachedTo'", 0) end end --server function createMarkerAttachedTo( type, size, r, g, b, a, visibleTo, element ) if type and size and r and g and b and a and isElement ( visibleTo ) and isElement ( element ) then local marker = createMarker ( 0, 0, 0, type, size, r, g, b, a ) attachElements ( marker, element, 0, 0, 0 ) else outputDebugString ( "Bad / missing argument(s) @ 'createMarkerAttachedTo'", 0) end end 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