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