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

adds export (client and server sided) for GetCops #527

Closed
wants to merge 2 commits into from

Conversation

Mustachedom
Copy link

@Mustachedom Mustachedom commented Jan 9, 2025

Describe Pull request
added export for GetCops which returns the number of cops that are clocked in.

example: ( client and server side work the same way)

  if not exports['qb-policejob']:GetCops() >= Config.MinCops then 
       print('Not Enough Cops')
       return
 end

Or the latter

   if exports['qb-policejob']:GetCops() >= Config.MinCops then
       print('enough cops')
   end

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all it's functionality? [yes] (Be honest)
  • Does your code fit the style guidelines? [yes]
  • Does your PR fit the contribution guidelines? [yes]

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

Successfully merging this pull request may close these issues.

1 participant