Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEHAVIOR DIFFERENCE]: SetVehicleToRespawn respawning where the last vehicle position not on created location. #591

Closed
Tracked by #671
eksqtr opened this issue Oct 23, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@eksqtr
Copy link

eksqtr commented Oct 23, 2022

Description

Describe the behavior difference between open.mp server and SA:MP server!
SetVehicleToRespawn is buggy sometimes where it respawn the vehicle from it's last position instead where the vehicle is being created using AddStaticVehicleEx

How to re-produce this behavior difference

new TruckerVehicles;
TruckerVehicles = AddStaticVehicleEx(456,2184.2715,-2657.7344,13.7617,89.2901, Random(0, 255), Random(0, 255), 300, false);

Drive the vehicle around then use

SetVehicleToRespawn(TruckerVehicles);

the truckervehicle should respawn at coordinate
2184.2715,-2657.7344,13.7617

where you created the vehicle using
AddStaticVehicleEx

but inrandom times the truckervehicle spawn where the last vehicle positioned before you trigger the
SetVehicleToRespawn(TruckerVehicles);

Tell us a how to re-produce this behavior:

  1. Create a Server vehicle using AddStaticVehicleEx
  2. Drive the vehicle around the location
  3. Trigger the SetVehicleToRespawn(TruckerVehicles);

Relevant log output

https://streamable.com/rzrxaq

open.mp server version

What open.mp server version are you using? Build 10

For a development build please specify its commit hash.

Operating system or distribution

Windows OS

Tell us what operating system or distribution did you use when you did encounter this behavior difference?

Contact information

Oppai#6450

Additional information

Any additional information that could be relevant for us to know?

@Hual Hual added the help wanted Extra attention is needed label Dec 13, 2022
@Y-Less Y-Less transferred this issue from openmultiplayer/server-beta-old Jan 9, 2023
@AmyrAhmady
Copy link
Member

Fixed in next build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants