Jump to content
McKay Development

Recommended Posts

Posted

Hey, Just wondering if anyone managed to replicate or set the "status" rp key using node-steam, just like FiveM seems to do on sourcemod, not sure if this is possible either currently with node-steam

https://partner.steamgames.com/doc/api/ISteamFriends#SetRichPresence

image.thumb.png.2eaf665fff9db58caa8df50cf7f87525.png

 

https://github.com/citizenfx/fivem/blob/88a0a6c5490f98c31ffdd56b565ac2f21fdfe523/code/components/steam/src/SteamComponent.cpp#L639

image.thumb.png.6f2ec89b956c94dc48264864ed9c5fb7.png

 

 

// doesn't work
client.setPersona(SteamUser.EPersonaState.Online)
client.gamesPlayed(218) // Source Mod 2007
client.uploadRichPresence(218, { "status": "FiveM?"})

// works but not what I'm trying to achieve
client.setPersona(SteamUser.EPersonaState.Online)
client.gamesPlayed(440) // TF2
client.uploadRichPresence(440, {
  "steam_display": "#tf_richpresence_display",
  "state": "PlayingGeneric",
  "currentmap": "FiveM?"
})

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...