Custom map icon (Rust)
I was wondering if it was possible, or if there are any plugins out there that let have a custom map marker for a vending machine or anything else? I make towns and gateways using the BetterWarp plugin and don't like using vending machines to direct people there.

Merged post

I see the plugin custom-markers but there's no way to change the color. I am looking for a plugin that lets you add a marker that is blue or you can change the color within the plugin.
In response to Jaco ():
I was wondering if it was possible, or if there are any plugins out there that let have a custom map...
You can change color in param of GenericMapMarker

marker2 = GameManager.server.CreateEntity("assets/prefabs/tools/map/genericradiusmarker.prefab", position).GetComponent<MapMarkerGenericRadius>();
                marker2.alpha = 1f;
                marker2.color1 = Color.white; // Main color
                marker2.color2 = Color.black; // Outline color
                marker2.radius = 3;
                marker2.enabled = true;
                marker2.Spawn();
                marker2.SendUpdate();​
Thank you for the response. I'm not really used to changing the actual code for plugins so this is all another language to me. If I wanted to make the red vending machine marker just a blue round circle, how would I do that if you don't mind me asking?
In response to Jaco ():
Thank you for the response. I'm not really used to changing the actual code for plugins so this is a...
Hm, okay then. You can contact me in PM and i will make small update to that plugin

Merged post

@shinnova
It will be nice if you will update Custom Map Markers with that code.

Marker 1 - vending machine-marker (for name)

Marker 2 - defaul map marker (for circle and colors)

marker1 = GameManager.server.CreateEntity("assets/prefabs/deployable/vendingmachine/vending_mapmarker.prefab", settings.position).GetComponent<VendingMachineMapMarker>();
                marker1.markerShopName = settings.name;
                marker1.enabled = false;
                marker1.Spawn();
            
                marker2 = GameManager.server.CreateEntity("assets/prefabs/tools/map/genericradiusmarker.prefab", settings.position).GetComponent<MapMarkerGenericRadius>();
                marker2.alpha = 1f;
                marker2.color1 = GetColor(settings.color1);
                marker2.color2 = GetColor(settings.color2);
                marker2.radius = settings.radius;
                marker2.enabled = true;
                
                marker2.Spawn();
                marker2.SendUpdate();​
hey but there is a problem or can u solve this too?  The problem what i have is for example if i set a own marker with color blue and it will stay and all player see it who is online, but if a new player joins the server he dont see the blue marker any more so u need use something to refresh this marker after a new player is joining the server. have u a idee how to solve this. i hope u understand what i mean :)
In response to dIMjIM ():
hey but there is a problem or can u solve this too?  The problem what i have is for example if i set...
Yes, you can destroy all markers on player join and re-create it

Its simpliest method
In response to Orange ():
Yes, you can destroy all markers on player join and re-create it

Its simpliest method
ok i will try it and look into it, i have very, very little experience about c# , but I learn it by the way :)

if i use this method, get i some bad Server Performance if it destroy and load again on players joining?

i use something similar for us to mark a special area but i am not sure if i lose some server performance through this. can i PM u later if i am home and show u what i mean.

thx
In response to Orange ():
Yes, you can destroy all markers on player join and re-create it

Its simpliest method
I noticed something similar.  I was spawning cars and attaching a map marker on them with "marker.SetParent(car, 0);"

Sometimes the markers would disappear, even though the car was still around.

Does it have something to do with garbage cleanup?

The markers seem to disappear from the map if I move a good distance away from them.
In response to Zugzwang ():
I noticed something similar.  I was spawning cars and attaching a map marker on them with "marker.Se...
Client doesnt allow entities out of 500m as i remember