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

Love it, thank you
Image is just for now while i find someone to make me a better one, was taken from google.
5 Likes
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
Quimey
36
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)

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?

zee
41
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?