umm really sorry for bothering you again. i tested it with my friends and it seems like the streetlabel disappear when “my character” walking and show when in car (As intended).
But on my friend end it “always disable” until “my character” get in the car and when i get out of the car it disappear on my friend side and doesn’t show up when my friend inside the car.
tl:dr : it kinda show/hidden depend on “my character” instead of each players whenever they inside the car.
Not sure if I understand your issue entirely but try replacing client.lua:141:
local ped = GetPlayerPed()
with
local ped = GetPlayerPed(-1)
Seems to work fine for me but can’t confirm with other players at the moment and don’t want to push an update to the github without knowing its entirely fixed.
Where exactly are you grabbing this code from? The github repository, the drawTxt function looks like:
function drawTxt(x,y ,width,height,scale, text, r,g,b,a)
if not HideHud then
SetTextFont(4)
SetTextProportional(0)
SetTextScale(scale, scale)
SetTextColour(r, g, b, a)
SetTextDropShadow(0, 0, 0, 0,255)
SetTextEdge(1, 0, 0, 0, 255)
SetTextDropShadow()
SetTextOutline()
SetTextEntry("STRING")
AddTextComponentString(text)
DrawText(x - width/2, y - height/2 + 0.005)
end
end
If you continue to have issues with it please PM me to resolve it or add me on discord: lowheartrate#1778
Fixed issue where it would show the HUD for everyone when a single person enters a vehicle instead of only showing to the player(s) that are in a vehicle.