πΊοΈVisual Board
AddAugmentedWindowCoords
Adds an augmented window in the defined coords
Usage :
exports.core_focus:AddAugmentedWindowCoords(title, coords, length, height, color, style, data, distance, heading)
Example :
local id = exports.core_focus:AddAugmentedWindowCoords('Vehicle Information', vector3(234, 353, 30.0), 3.0, 2.0, '#03fc88', 'basic', {['Model'] = GetEntityModel(vehicle)}, 5.0, nil)
AddAugmentedWindowEntity
Adds an augmented window above entity
Usage :
exports.core_focus:AddAugmentedWindowEntity(title, entity, length, height, color, style, data, distance, heading)
Example :
local id = exports.core_focus:AddAugmentedWindowEntity('Vehicle Information', vehicle, 3.0, 2.0, '#03fc88', 'basic', {['Model'] = GetEntityModel(vehicle)}, 5.0, nil)
RemoveAugmentedWindow
Removes augmented window from runtime
Usage :
exports.core_focus:RemoveAugmentedWindow(id)
Example :
exports.core_focus:RemoveAugmentedWindow(2)
UpdateAugmentedWindow
Updates augmented window in runtime
Usage :
exports.core_focus:UpdateAugmentedWindow(id, data)
Example :
exports.core_focus:UpdateAugmentedWindow(2, {
length = 4.0,
width = 2.0
})
Parameters:
title
string
The display name of the window
coords
table
Location of window in vector3 coords. Can not use entity if using this
entity
entity
Entity above which the window appears. Can not use coords if using this
length
number
The length of the window
width
number
The width of the window
heading
number
Heading where the window points to. Leave nil for automatic facing towards the observer
style
string
Style of the window choose from:
list, basiclist, basic, image, progress, cards, compact
distance
number
The distance from which you can see the window
data
table
The information of the window in hash table format
{
-- For list, basiclist, cards, compact
["CHECK OUT OUR RULES"] = "/rules",
["JOIN OUR DISCORD"] = "/discord",
["SERVER UPTIME"] = "72 HOURS",
-- For progress
['NEXT WIPE IN'] = 50, -- percent
-- For images
['A CAT'] = 'https://urltoimg.com/cat.png'
}
Last updated