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

Differences in calling OnGamemodeExit using gmx and exit commands #932

Open
ddanyk opened this issue Jun 30, 2024 · 0 comments
Open

Differences in calling OnGamemodeExit using gmx and exit commands #932

ddanyk opened this issue Jun 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working nightly

Comments

@ddanyk
Copy link

ddanyk commented Jun 30, 2024

Describe the bug
When I restart the rcon server with the gmx command, when OnGamemodeExit is called, the vehicles are still valid and can be manipulated, for example their data can be saved. However, when I use the rcon exit command, the vehicles are no longer valid and therefore cannot be worked with.

Maybe it is not just about vehicles.

To Reproduce
Steps to reproduce the behavior:

  1. Create any valid vehicle in OnGamemodeInit() callback and save its ID to any variable
  2. Add printf("%i",IsValidVehicle(variable)); under OnGamemodeExit callback
  3. See different states when gmx is used and when exit is used.

Expected behavior
Keep valid vehicles in both cases so we can manipulate with them.

Screenshots and/or logs
https://i.ibb.co/JprhZqz/image.png
https://i.ibb.co/58hkmyg/image.png

version omp 1.2.0.2735
https://github.com/openmultiplayer/open.mp/actions/runs/9136915959

@ddanyk ddanyk added bug Something isn't working nightly labels Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nightly
Projects
None yet
Development

No branches or pull requests

2 participants