local playercount = 0
Citizen.CreateThread(function()
-- while true do
--This is the Application ID (Replace this with you own)
SetDiscordAppId()
--Here you will have to put the image name for the "large" icon.
SetDiscordRichPresenceAsset('unknown')
--(11-11-2018) New Natives:
--Here you can add hover text for the "large" icon.
SetDiscordRichPresenceAssetText('')
--Here you will have to put the image name for the "small" icon.
-- SetDiscordRichPresenceAssetSmall('onayli')
--Here you can add hover text for the "small" icon.
-- SetDiscordRichPresenceAssetSmallText('Doğrulandı')
--It updates every one minute just in case.
-- Citizen.Wait(10)
-- end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(10000)
SetRichPresence(GetPlayerName(PlayerId()) .. " - ".. playercount .. "/256")
end
end)
RegisterNetEvent('discordactivity
layercount')
AddEventHandler('discordactivity
layercount', function(count)
playercount = count
end)