Skip to main content

Text

Quick Reference

NameTypeDescription
AddEntryClientAdd GXT entry.
AddEntryByHashClientAdd GXT entry by hash.
SetLoadingTextClientSet loading screen text.

Client Functions

AddEntry

Add GXT entry.

Text.AddEntry(string key, string label)

tip

This function can also be used to overwrite existing GXT entries.

Example:

Text.AddEntry("MenuHelp", "~INPUT_PICKUP~ Open Menu")

Thread.Create(function()
while true do
Thread.Pause(0)

Game.DrawFrontendHelperText("", "MenuHelp", false)
end
end)

AddEntryByHash

Add GXT entry by hash.

Text.AddEntryByHash(uint key, string label)

tip

This function can also be used to overwrite existing GXT entries.


SetLoadingText

Set loading screen text.

Text.SetLoadingText(string text)

Example:

Events.Subscribe("sessionInit", function()
Text.SetLoadingText("Loading Freeroam...")
end)