setDiscordRichPresencePartySize | Multi Theft Auto: Wiki Skip to content

setDiscordRichPresencePartySize

Client-side
Server-side
Shared

Manual Review Required

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


This function sets the party size of Discord Rich Presence.

Note

For the party size to be displayed, the state must be set setDiscordRichPresenceState

Important

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

OOP Syntax Help! I don't understand this!

Syntax

bool setDiscordRichPresencePartySize ( int size, int max )
Required Arguments
  • size: an integer representing the current party size.
  • max: an integer representing the maximum party size.

Returns

  • bool: value

Returns true if function succeeds, false otherwise.

Code Examples

shared

This example shows how to change the party size of the Discord Rich Presence application.

local app_id = "YOUR_APPLICATION_ID"
if setDiscordApplicationID(app_id) then
setDiscordRichPresenceState("In-game")
setDiscordRichPresencePartySize(1, 32)
end