Exports
Client Exports
This section lists all available exports, detailing each function's purpose, arguments, and return values to help you integrate with the resource effectively.
togglePlacementMode
Toggles the tape and cone placement mode.
exports['div_tape']:togglePlacementMode()toggleDeletionMode
Toggles the tape and cone deletion mode.
exports['div_tape']:toggleDeletionMode()isCreationActive
Checks if creation mode is active.
local isActive = exports['div_tape']:isCreationActive()| Argument | Type | Description |
|---|---|---|
isActive | boolean | Whether creation mode is active or not. |
isDeletionActive
Checks if deletion mode is active.
local isActive = exports['div_tape']:isDeletionActive()| Argument | Type | Description |
|---|---|---|
isActive | boolean | Whether deletion mode is active or not. |
isContinuousActive
Checks if continuous mode is active.
local isActive = exports['div_tape']:isContinuousActive()| Argument | Type | Description |
|---|---|---|
isActive | boolean | Whether continuous mode is active or not. |
getCurrentPlacementMode
Checks if continuous mode is active.
local placementMode = exports['div_tape']:getCurrentPlacementMode()| Argument | Type | Description |
|---|---|---|
placementMode | string | Returns either "tape" or "cone" based on the currently selected mode. |
getClosestTape
Finds the closest tape to specified coords. If no coords are specified, the player's position will be used instead.
local closestTape = exports['div_tape']:getClosestTape(coords)| Argument | Type | Description |
|---|---|---|
coords? | vector3 | The radius in which to delete tapes and cones. |
| Returned Data | Type | Description |
|---|---|---|
tapeId | number | The tapeId of the closest tape if found. |
deleteTape
Deletes a tape if valid tapeId is specified.
exports['div_tape']:deleteTape(tapeId)| Argument | Type | Description |
|---|---|---|
tapeId | number | A unique ID of each placed tape. |