-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix(citizen-server-impl): add the ability to restart categories for command: restart #3237
base: master
Are you sure you want to change the base?
Conversation
Corrected file: ServerResources.cpp. The changes concern the restart command, namely adding the ability to restart categories, as with the start/stop commands.
…nsole. A variation of the command was added: restart [resourceName] [isPrintStopedResource]. This allows you to remove the message “Can't restart a stopped resource.” from the display. This message was appearing when a category was restarted and it contained stopped resources. All other logic of the command has not changed.
You've got typo in |
Minor change to correct a typo in the word: “isPrintStoppedResource”
Thank you for the observation. The typo has been corrected. |
Thank you for the contribution. We would like to not add additional complexity to resource manager system so I want to ask you to remove this additional argument and just do print something like |
… one or more resources.
Goal of this PR
Add the ability to restart categories for command: restart
...
How is this PR achieving the goal
Added ability to use: “restart [resourceCategory]” like start/stop. Also added a new variation of “restart [resourceCategory] [isPrintStoppedResource]” to avoid the situation where a category may contain a resource that is not running. All other behavioral logic remains the same.
...
This PR applies to the following area(s)
FiveM, RedM, Server
...
Successfully tested on
Platforms: Windows
Checklist
Fixes issues