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

Add resource server commands #2549

Open
Disinterpreter opened this issue Feb 15, 2022 · 5 comments
Open

Add resource server commands #2549

Disinterpreter opened this issue Feb 15, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Disinterpreter
Copy link
Member

Disinterpreter commented Feb 15, 2022

Is your feature request related to a problem? Please describe.
Add serverside commands like in FiveM

Describe the solution you'd like
Improve command start\restart\stop and add ensure

start\restart\stop must support directories with brackets like
start [cars]
ensure restart the resource (or group) and start if something in argument was stopped like
ensure [cars]
ensure resourcename

Additional context
https://docs.fivem.net/docs/server-manual/server-commands/

P.S perhaps it is good first issue

@Disinterpreter Disinterpreter added the enhancement New feature or request label Feb 15, 2022
@Fernando-A-Rocha
Copy link
Contributor

ensure seems useful! +1

@0xCiBeR
Copy link
Member

0xCiBeR commented Feb 26, 2022

What would be the point of supporting bracket type directories? The way it currently works is that if a directory has [] in its name its ignored as a resource since its used for having better sorting inside the resource folder. Adding this would break that functionality.
The ensure command would be great.

@Lpsd
Copy link
Member

Lpsd commented Feb 27, 2022

Adding to that, we already have the require tag in meta.xml if you want to start multiple resources.

@CrosRoad95
Copy link
Contributor

no, in my opinion we should add server config that says which commands should not be added by default, for example "start" and then you can implement this functionality by yourself

@PlatinMTA
Copy link
Contributor

PlatinMTA commented May 19, 2023

What would be the point of supporting bracket type directories?

I think he wants to start, stop or restart all the resources inside a [directory].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants