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 :

NameTypeDescription

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 :

NameTypeDescription

uniqName

string

Uniq name

Example

exports["tgiann-core"]:DrawTextClose("shop-menu-1")

DrawText3D

Should be used in a continuous while loop

exports["tgiann-core"]:DrawText3D(coords, textTable, uniqName)

Parameters :

NameTypeDescription

coords

vector3

Drawtext Coords

textTable

table

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