Logo

DIVERSITY

Documentation

Exports

Server Exports

This section lists all available exports, detailing each function's purpose, arguments, and return values to help you integrate with the resource effectively.

getClosestTape

Finds the closest tape to specified coords.

server.lua
local closestTape = exports.div_tape:getClosestTape(coords)
ArgumentTypeDescription
coords
vector3
The radius in which to delete tapes and cones.
Returned DataTypeDescription
tapeId
number
The tapeId of the closest tape if found.

deleteTape

Deletes a tape if valid tapeId is specified.

server.lua
exports.div_tape:deleteTape(tapeId)
ArgumentTypeDescription
tapeId
number
A unique ID of each placed tape.

Was this page helpful?