setDiscordRichPresenceAsset | Multi Theft Auto: Wiki Skip to content

setDiscordRichPresenceAsset

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Using this function you can set the large image asset of the application. The maximum size of assets is 1024x1024, the minimum is 512x512.

Important

To use this function, you must set up your own application setDiscordApplicationID

Syntax

setDiscordRichPresenceAsset ( )

Code Examples

client

The example sets the large image asset to my_logo.

addCommandHandler("setlogo",
function ()
if isDiscordRichPresenceConnected() then
setDiscordRichPresenceAsset("my_logo", "This is my logo!")
end
end
)