-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
[Feature Request] - es_extended - include duty status in job statebag counter #1536
Comments
Having not used or followed esx development recently I'm unsure of how widespread this system is. |
To maintain compatibility, we would need to introduce a second global state for each job to track the on-duty player count. Personally, I'm not sure if that is a good idea. Do you have a specific use case in mind? Alternatively, we could add a config option to only reflect on-duty players in the job player count? |
Just a general Idea following some support given on lb-phone which checks the players on duty to determine if a company is open or not.
it's limited use but could be something interesting. |
@Maximus7474 I'm planning to add an internal player job cache anyways. We could expose a function to retrieve the number of players on duty for a given job. Would that solve your issue? |
Sounds like à good solution, I wouldn't call it an issue more like à thought to improve the system. |
Describe the Feature
With the new version (1.11.*) and the integration of job duty, it would be useful to alter the data in
ESX.JobsPlayerCount
to not only reflect the number of connected players with the job but also players with the job active.This could also be done with another system in parallel with an object called something like
ESX.JobsOnDutyPlayerCount
.Screenshots
This is only rough idea to detail the imagined concept
Additional context
This can be very useful for scripts that check if any players are on duty to allow/deny the use of certain functionalities.
The text was updated successfully, but these errors were encountered: