zfbx / zdiscord

A Discord bot that runs in FiveM for the purpose of whitelisting, moderation and utilties using discord.js
Other
210 stars 79 forks source link

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

Open Joshl45 opened 1 year ago

Joshl45 commented 1 year ago

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]

zfbx commented 1 year ago

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