Skip to content

Shows somthing about your FiveM Server in Discord

Notifications You must be signed in to change notification settings

CrankChaos/discord_rich_presence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Rich Presence

Shows some special things to your Discord User Info

Discord Rich Presence

Config

local WaitTime = 30000 -- How often do you want to update the status (In MS)
local appid = '705481659721711661' -- Make an application @ https://discordapp.com/developers/applications/ ID can be found there.
local asset = 'logo_name' -- Go to https://discordapp.com/developers/applications/APPID/rich-presence/assets

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(WaitTime)

		local id = GetPlayerServerId(PlayerId())
		local name = GetPlayerName(PlayerId())
		local playerCount = #GetActivePlayers()

		SetDiscordAppId(appid)
		SetDiscordRichPresenceAsset(asset)
		SetDiscordRichPresenceAssetText('FlavourV Roleplay')
		SetDiscordRichPresenceAssetSmall(asset)
		SetDiscordRichPresenceAssetSmallText('FlavourV Roleplay')

    	SetDiscordRichPresenceAction(0, "Discord", "https://discord.gg/D9bWaybEMC")
    	SetDiscordRichPresenceAction(1, "Verbinden", "fivem://connect/fivem.flavourv.de:30120")

		SetRichPresence(playerCount.."/64 - ID: "..id.." | Name: "..name)
		
	end
end)

About

Shows somthing about your FiveM Server in Discord

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages