Skip to content

Comments

fix(getNearbyPlayers): More reliable coord getter for players in vehicle#88

Open
tugamars wants to merge 1 commit intoCommunityOx:mainfrom
tugamars:main
Open

fix(getNearbyPlayers): More reliable coord getter for players in vehicle#88
tugamars wants to merge 1 commit intoCommunityOx:mainfrom
tugamars:main

Conversation

@tugamars
Copy link

When a player is inside a vehicle GetEntityCoords returns the center of the vehicle, which is not necessarily the players coords in the world.

This PR improves the reliability of getNearbyPlayers by using the actual position of the player in the world.

Signed-off-by: Marcelo Silva <25794492+tugamars@users.noreply.github.com>
@tugamars tugamars changed the title (fix getNearbyPlayers) More reliable coord getter for players in vehicle fix(getNearbyPlayers): More reliable coord getter for players in vehicle Feb 22, 2026
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.

1 participant