πΊοΈVisual Borders
AddAugmentedLocation
Adds an augmented location in runtime
Usage :
exports.core_focus:AddAugmentedLocation(name, coords, height, color, distance, ground)
Example :
local id = exports.core_focus:AddAugmentedLocation('Hospital', {vector3(1,1,1), vector3(2,2,2), vector3(3,3,3), vector3(4,4,4)}, 5.0, '#03fc88', 30.0, 'auto')
RemoveAugmentedLocation
Removed augmented location from runtime
Usage :
exports.core_focus:RemoveAugmentedLocation(id)
Example :
exports.core_focus:RemoveAugmentedLocation(2)
UpdateAugmentedLocation
Updates augmented location in runtime
Usage :
exports.core_focus:UpdateAugmentedLocation(id, data)
Example :
exports.core_focus:UpdateAugmentedLocation(2, {
name = "HOSPITAL 2",
active = true
})
Parameters:
Name
Type
Description
name
string
The display name of the border
coords
table
A table with vector3 or vector2 points that make up the border
{
vector3(2027.2366943359,3768.9274902344,32.19881439209),
vector3(2006.4477539062,3807.3811035156,32.13111114502),
vector3(1968.7346191406,3786.8549804688,31.965503692627),
vector3(1988.974609375,3748.9729003906,32.260639190674),
}
height
number
The height of border
color
hex
The color of the border in hex value
distance
number
From what distance the border is seen
ground
number
The Z cordinate from which the border will be drawn. You can use 'auto' so it finds ground Z coords automatically
ground = 'auto'
active
boolean
This sets the border as visible or not with true or false
Last updated