Try this, it should work now.

Citizen.CreateThread(function()
    while true do
        local playerId = GetPlayerServerId(PlayerId())
        local playerName = GetPlayerName(PlayerId())
        SetDiscordAppId(863587944127660043)
        SetDiscordRichPresenceAsset('tempestlogo')
        SetDiscordRichPresenceAssetText('https://discord.tempestcommunity.com')
        SetDiscordRichPresenceAction(0, 'Wanna know what Tempest is? Check out our website!', 'https://www.tempestcommunity.com')
        SetDiscordRichPresenceAction(1, 'Join our Discord community too!', 'https://discord.tempestcommunity.com')
        SetRichPresence(string.format('%s [%d] - Players: %d / 128', playerName, playerId, #GetActivePlayers()))
        Citizen.Wait(10000)
    end
end)
1 Like