Exports
All exports are used in client
DrawTextOpen
Shows a push-button message to the player on the right side of the screen
Similar to DrawText export in qb
exports["tgiann-core"]:DrawTextOpen(uniqName, keyButton, text)
Parameters :
Name
Type
Description
uniqName
string
Uniq name
keyButton
string
Button text: (Exampole: E)
text
string
msg
Example
exports["tgiann-core"]:DrawTextOpen("shop-menu-1", "E", "Open Shop")
DrawTextClose
exports["tgiann-core"]:DrawTextClose(uniqName)
Parameters :
Name
Type
Description
uniqName
string
Uniq name
Example
exports["tgiann-core"]:DrawTextClose("shop-menu-1")
UiDrawText3D
Should be used in a continuous while loop
exports["tgiann-core"]:UiDrawText3D(coords, textTable, uniqName)
Parameters :
Name
Type
Description
coords
vector3
Drawtext Coords
textTable
[ string, string ][]
text key and msg
uniqName
string
Uniq name
Example
local coords1 = vector3(1.0, 2.0, 3.0)
local coords2 = vector3(4.0, 5.0, 6.0)
exports["tgiann-core"]:UiDrawText3D(coords1, {
{ "E", "Open Menu" }
}, "menu-1")
exports["tgiann-core"]:UiDrawText3D(coords2, {
{ "E", "Open Menu" },
{ "G", "Open Boss Menu" }
}, "menu-2")
Last updated