Jump to content

1 Screenshot

  • 38.5k
  • 644
  • 11.85 kB
 Share

About Marker API

A lightweight API that allows other plugins to place markers on the map. On its own it serves no purpose.

 

Developer API:

position: world position of the marker
entity: the entity the marker is attached to 
uname: unique name of the marker, used when removing it 
ownerid: marker is only visible to player with that id 
duration: time before the marker will be removed automatically 
refreshRate: time between marker refesh, useful for markers attached to entities 
radius: radius of the circle on the map 
displayName: name of the marker on the map 
colorMarker: color of the marker, in hex format 
colorOutline: color of the marker outline, in hex format with transparency

 

Create a map marker visible for everyone at a given position. Returns false when a marker with the given name already exists.

(bool) API_CreateMarkerPublic (Vector3 position, string uname, int duration = 0, float refreshRate = 3f, float radius = 0.4f, string displayName = "Marker", string colorMarker = "00FFFF", string colorOutline = "00FFFFFF")

Create a map marker visible for everyone attached to an entity. Returns false when a marker with the given name already exists.

(bool) API_CreateMarkerPublic (BaseEntity entity, string uname, int duration = 0, float refreshRate = 3f, float radius = 0.4f, string displayName = "Marker", string colorMarker = "00FFFF", string colorOutline = "00FFFFFF")

Create a map marker only visible for a certain player at a given position. Returns false when a marker with the given name already exists.

(bool) API_CreateMarkerPrivate (Vector3 position, string uname, ulong ownerid, int duration = 0, float refreshRate = 3f, float radius = 0.4f, string displayName = "Marker", string colorMarker = "00FFFF", string colorOutline = "00FFFFFF")

Create a map marker only visible for a certain player attached to an entity. Returns false when a marker with the given name already exists.

(bool) API_CreateMarkerPrivate (BaseEntity entity, string uname, ulong ownerid, int duration = 0, float refreshRate = 3f, float radius = 0.4f, string displayName = "Marker", string colorMarker = "00FFFF", string colorOutline = "00FFFFFF")

Remove map marker (fast)

(bool) API_RemoveCachedMarker (string uname)

Remove map marker (slow, use only if marker is not cached)

(void) API_RemoveMarker (string uname)

 

Credit:

Credit to https://umod.org/user/DezLife for the original plugin. This plugin is a fork of https://umod.org/plugins/marker-manager


User Feedback

1.3m

Downloads

Total number of downloads.

6.6k

Customers

Total customers served.

97.2k

Files Sold

Total number of files sold.

1.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.