Jump to content

1 Screenshot

  • 2,452
  • 162
  • 11.22 kB
 Share

Works with

About Marker API

A lightweight API that allows other plugins to place markers on the map. On its own it serves no real 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

 void 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

 void 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

 void 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

 void 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)

void 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

 Share


The_Kiiiing's Collection

User Feedback

434.2k

Downloads

Total number of downloads.

2.3k

Customers

Total customers served.

32k

Files Sold

Total number of files sold.

520.5k

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.