Skip to content

Conversation

@Xenius97
Copy link
Contributor

@Xenius97 Xenius97 commented Nov 28, 2025

Closes #2400

This PR adds isElementSyncer for serverside too (now this function is shared) and adds new getElementsSyncedByPlayer which returns element table synced by player.

Client side:

table getElementsSyncedByPlayer([ filter = "ped,vehicle" ])

Server side:

table getElementsSyncedByPlayer(player, [ filter = "ped,vehicle" ])
bool isElementSyncer(player, element)

Copy link
Member

@tederis tederis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add getPlayerSyncerElements

2 participants