You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Create any valid vehicle in OnGamemodeInit() callback and save its ID to any variable
Add printf("%i",IsValidVehicle(variable)); under OnGamemodeExit callback
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.
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 rconexit
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:
printf("%i",IsValidVehicle(variable));
under OnGamemodeExit callbackgmx
is used and whenexit
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
The text was updated successfully, but these errors were encountered: