ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setDiscordRichPresenceAsset

Function

setDiscordRichPresenceAsset

ClientDiscordTrilogy Hub only

Sets the large image in the player's Discord status and the caption shown when hovering over it. The image is the key (name) of artwork uploaded in the Discord Developer Portal to the application set with setDiscordApplicationID. Without your own application Trilogy Hub shows its logo. An empty key removes the script-set image.

Syntax

bool setDiscordRichPresenceAsset(string asset [, string text = ""])

Arguments

assetstring
Image key from Art Assets (up to 256 characters). "" = remove.
textstring, optional = ""
Hover caption (up to 128 characters).

Returns

true when the status was passed to the launcher.

Example

setDiscordRichPresenceAsset("mapa_ls", "Los Santos")

See also