mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 13:56:02 +01:00
fixed discord rich presence
This commit is contained in:
@@ -23,9 +23,9 @@ end
|
||||
-- discord rich precense will show on a users profile.
|
||||
if config.enableRichPrecence then
|
||||
Citizen.CreateThread(function()
|
||||
SetDiscordAppId(config.appId)
|
||||
while true do
|
||||
if NDCore.SelectedCharacter then
|
||||
SetDiscordAppId(config.appId)
|
||||
SetRichPresence(" Playing : " .. config.serverName .. " as " .. NDCore.SelectedCharacter.firstName .. " " .. NDCore.SelectedCharacter.lastName)
|
||||
SetDiscordRichPresenceAsset(config.largeLogo)
|
||||
SetDiscordRichPresenceAssetText("Playing: " .. config.serverName)
|
||||
|
||||
Reference in New Issue
Block a user