Jump to content

Question !


Recommended Posts

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

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