[How-to] [Updated] Discord rich presence Custom Image šŸž

Thank you . I tryed , iā€™ve made like this: https://imgur.com/a/aUHsAQb and it didnā€™t work . Can you help me out ? Thank you !

If youā€™re trying to use the name and id var in the SetDiscordRichPresenceAssetText text string you must enclose it in "..
ex: SetDiscordRichPresenceAssetText("ID: "..id.." | "..name.." ")
I have never tested if you can put a variable in the image texts but that is how you would do it

1 Like

Super useful.
Thanks so much for making this Iā€™ve been trying to figure it out for so long!

1 Like

When you mean ā€œroleplay namesā€ do you mean names given to you by esx, vrp, etc? or the users steam name?

1 Like

I fixed it, its for ESX.

Love this mate!

image

Love it, thank you :slight_smile: Image is just for now while i find someone to make me a better one, was taken from google.

5 Likes

good release cutie

3 Likes

does not work

1 Like

Discribe any errors because this sounds like user error

1 Like

Get it to work, but the photo does not want to appear ā€¦

1 Like

First check if the image name is correct, also make sure you donā€™t have a double ā€œ-ā€ in your image name, this may causes a weird bug.

1 Like

@QuimeyDo you possibly have a discord, maybe we can call and you can show me because Iā€™m confused. If you want to DM me on the forums to exchange information, that works.

If you will change the MPH to KPH do this
MPH = math.ceil(GetEntitySpeed(GetVehiclePedIsUsing(PlayerPedId())) * 3.6)
:wink:

1 Like

Hi were do i put these commandsā€¦is this right ?

Citizen.CreateThread(function()
while true do
ā€“This is the Application ID (Replace this with you own)
SetDiscordAppId(560458517799239716)

    --Here you will have to put the image name for the "large" icon.
	SetDiscordRichPresenceAsset('logo')
    
    --(11-11-2018) New Natives:

    --Here you can add hover text for the "large" icon.
    SetDiscordRichPresenceAssetText('NaturBerget RP')
   
    --Here you will have to put the image name for the "small" icon.
    SetDiscordRichPresenceAssetSmall('logo')

    --Here you can add hover text for the "small" icon.
    SetDiscordRichPresenceAssetSmallText('sweden_flag_orb_icon_svg')
	
	name = GetPlayerName(PlayerId())
    id = GetPlayerServerId(PlayerId())
	
	SetDiscordRichPresenceAssetText("ID: "..id.." | "..name.." ")

    --It updates every one minute just in case.
	Citizen.Wait(60000)
end

end)

Does anyone know how to fix it? Why not picture?unknown%20(1) image

Have you used SetDiscordRichPresenceAsset and set the param to karmarp, for example SetDiscordRichPresenceAsset('karmarp').

1 Like

Not working for some reason

Do you have a proper SetDiscordAppId?

Iā€™m stupid it works now

1 Like