Pack
Pack provides the ability to execute scripts and create markers.
Functions
| Function | Description | 
|---|---|
| Require | Executes the Lua file specified. | 
| CreateMarker | Creates a new marker within the marker pack. | 
Pack:Require(path)
Executes the Lua file specified.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| path | string | The relative path to the script. Must be relative to the root of the marker pack. .luaat the end is optional. | 
Usage
script.lua
Pack:Require("path/to/script")
Pack:CreateMarker(attributes)
Creates a new marker within the marker pack.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| attributes | table | The attributes of the marker. | 
Usage
script.lua
local attributes = {
    xpos = 0,
    ypos = 0,
    zpos = 0,
    iconFile = "path/to/icon.png",
}
local newMarker = Pack:CreateMarker(attributes)