Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

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

Open
tugamars wants to merge 6 commits intoCommunityOx:mainfrom
tugamars:main
Open

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

Conversation

@tugamars
Copy link
Copy Markdown

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
Signed-off-by: Marcelo Silva <25794492+tugamars@users.noreply.github.com>
Comment thread imports/getClosestPlayer/client.lua Outdated
Signed-off-by: Marcelo Silva <25794492+tugamars@users.noreply.github.com>
@tugamars
Copy link
Copy Markdown
Author

tugamars commented Apr 9, 2026

@FjamZoo Should be good now

@tugamars tugamars requested a review from FjamZoo April 10, 2026 11:53
tugamars added 3 commits May 2, 2026 14:02
Signed-off-by: Marcelo Silva <25794492+tugamars@users.noreply.github.com>
Modified the getClosestPlayer function to return the closest vehicle along with player ID, ped, and coordinates.

Signed-off-by: Marcelo Silva <25794492+tugamars@users.noreply.github.com>
Update player coordinates retrieval to account for vehicle presence.

Signed-off-by: Marcelo Silva <25794492+tugamars@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants