altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

player.name global sync setting

Open Lekenthu opened this issue 1 year ago • 6 comments

Description of the problem

Since the last alt:V patch, the name property is now only synchronized to other players within the streaming distance. It would be nice if it could be set in server configuration to continue to synchronize with everyone.

But why is this necessary? For example, for scoreboard (online player list).

Desired solution for the problem

Alternatives you considered

No response

Additional context

No response

Lekenthu avatar Jan 18 '24 16:01 Lekenthu

do you have sendPlayerNames option in your server config?

xxshady avatar Jan 18 '24 16:01 xxshady

or do you use .sendNames anywhere in your code?

xxshady avatar Jan 18 '24 16:01 xxshady

do you have sendPlayerNames option in your server config?

Yes, it is currently at true value. I don't use sendNames anywhere.

Lekenthu avatar Jan 18 '24 16:01 Lekenthu

It's bug then

xxshady avatar Jan 18 '24 17:01 xxshady

Use synced meta data for global name sync. This was a breaking change that wasn't written in the changelog

FabianTerhorst avatar Feb 26 '24 21:02 FabianTerhorst

But I think the point of the sendNames property (or sendPlayerNames config) would be to send the name to everyone. Also, syncedMeta is still buggy if I set it during playerConnect event. (https://github.com/altmp/altv-issues/issues/2187)

Lekenthu avatar Feb 27 '24 03:02 Lekenthu