Closed SiahRBLX closed 11 months ago
Any screenshots of the issue? I unfortunatly wasnt able to reproduce it.
Not home at the moment but when In the city the location don’t update via rich presence when players go to different streets.
I’ll try testing more around 6am EST
I have a hunch what's going on. I'll get back to you when i also arrive home.
he didnt post anything but i will
Perhaps im using the wrong export for getting the street location, lemme find it.
okay, i just got mine from you last night :) easy to set up just want the street to show since its the only preset working for me
function location()
local coords = GetEntityCoords(ped)
local location = GetStreetNameFromHashKey(GetStreetNameAtCoord(coords[1], coords[2], coords[3]))
local hash = GetStreetNameFromHashKey(location)
return Config.LocationText .. ' ' .. hash
end
Could you try replacing the location() function with this and testing it? I don't currently have a FiveM server set up and I don't even have the game installed too
function location()
that would be where? server or client?
Also,
Does the script always output Spanish Ave, or does it start where you are but not update? Because if so, I can fix this right now without the game installed.
Also,
Does the script always output Spanish Ave, or does it start where you are but not update? Because if so, I can fix this right now without the game installed.
spanish 24/7
function location()
that would be where? server or client?
function location()
that would be where? server or client?
restarting now and testing
Any errors on the client side in the console?
Any errors on the client side in the console?
no errors in F8 or in my console for VPN or TxAdmin
Any errors on the client side in the console?
no errors in F8 or in my console for VPN or TxAdmin
Any errors on the client side console? (F8 in game)
Any errors on the client side in the console?
no errors in F8 or in my console for VPN or TxAdmin
Any errors on the client side console? (F8 in game)
No Errors in F8
Hmmm, try replacing the function with this:
function location()
local coords = GetEntityCoords(ped)
local streethash = GetStreetNameAtCoord(coords.x, coords.y, coords.z)
local streetname = GetStreetNameFromHashKey(streethash)
return Config.LocationText .. ' ' .. streetname
end
Hmmm, try replacing the function with this:
function location() local coords = GetEntityCoords(ped) local streethash = GetStreetNameAtCoord(coords.x, coords.y, coords.z) local streetname = GetStreetNameFromHashKey(streethash) return Config.LocationText .. ' ' .. streetname end
Change
GetStreetNameAtCoord(coords.x, coords.y, coords.z)
to
GetStreetNameAtCoord(coords)
I genuinely have 0 clue right now how the coords works and how to parse them. I haven't used LUA in almost half a year.
damn, might need to find another one huh?
I'll get around to installing it again and trying this out. Tommorow ill check back for more here.
damn alright, ill revert back to the base one so my stuff shows up for now, might look for another and come back tomorrow for the fix :)
damn alright, ill revert back to the base one so my stuff shows up for now, might look for another and come back tomorrow for the fix :)
You could also try suggesting any new presets, im bone dry on ideas.
i just wanted the Street name and Number of players in the city showing so the preset you had i was really vibing for :D
damn alright, ill revert back to the base one so my stuff shows up for now, might look for another and come back tomorrow for the fix :)
You could also try suggesting any new presets, im bone dry on ideas.
anything yet?
I'm still working on it, seems im either using the natives wrong, or im doing smth else wrong.
Pushed a fix here
It does indeed turn out i am an idiot. It was a single word that was wrong.
Just replace the client.lua, everything else is the same for now.
I've reopened the issue, as I found a separate bug that correlates to this one. Also, still open for discussion if it still doesn't work.
It was a local issue and i forgot to close this one, im dumb.
Location does not match what player is on via ingame