RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. SET_DISCORD_RICH_PRESENCE_ACTION

SET_DISCORD_RICH_PRESENCE_ACTION

Sets a clickable button to be displayed in a player's Discord rich presence.

CFX

Signature

lua
SetDiscordRichPresenceAction(0, label, url)
-- returns void

Parameters

NameTypeDescription
intThe button index, either 0 or 1.
char*The text to display on the button.
char*The URL to open when clicking the button. This has to start with `fivem://connect/` or `https://`.

Usage

lua
SetDiscordRichPresenceAction(0, label, url)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details