Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player name showing "invalid" is on road name #96

Open
Joshl45 opened this issue Jun 28, 2023 · 1 comment
Open

Player name showing "invalid" is on road name #96

Joshl45 opened this issue Jun 28, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Joshl45
Copy link

Joshl45 commented Jun 28, 2023

Before submitting your question have you checked the check the FAQ or checked for similar issues already?: [yes]

Question:
I have been trying to find out how to change the "invalid" to show the player name. I see SetRichPresence( GetPlayerName(source) .. " is on " .. GetStreetNameFromHashKey(GetStreetNameAtCoord(table.unpack(GetEntityCoords(player))) )). Do I change (source) and if so what do I need to change it to?

Information:
FiveM artifact #: [eg. 3200]
Using QBCore?: [yes]
When did you last update QBCore if you are using it?: [eg. yesterday, 3 months]

@Joshl45 Joshl45 added the question Further information is requested label Jun 28, 2023
@zfbx
Copy link
Owner

zfbx commented Jun 28, 2023

Where are you doing this? A separate script? a custom command? I need more information. If it's a seperate script you have to call it by the export name https://github.com/zfbx/zdiscord/blob/djs/docs/exports.md#getname if you're calling it in a custom command it's a bit different depending on things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants