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

[BUG] #110

Closed
SharkyFP opened this issue Mar 5, 2022 · 3 comments
Closed

[BUG] #110

SharkyFP opened this issue Mar 5, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@SharkyFP
Copy link

SharkyFP commented Mar 5, 2022

Describe the bug
I've got a bug with /reporttoggle command where it should give you 2 options. Either Toggle reports ON or OFF but I only get OFF. Since /staffchat is connected to that staff members also can't chat on the server. I checked console ingame and server log console and I found no bugs.

To Reproduce
Steps to reproduce the behavior:

  1. Use in-game /reporttoggle
  2. Check if it gives to options when typing it twice
  3. Got only "You are not receiving reports"
  4. No error

Expected behavior
When using /reporttoggle

  1. "You are not receiving reports"
  2. "You are receiving reports"

Screenshots
( I spammed /reporttoggle for refrence to see what I get )
image

Questions (please complete the following information):

  • When you last updated: Last update was yesterday but it was same as 20 days ago
  • Are you using custom resource? which ones? Nothing that conflicts with admin ( Only txAdmin )
  • Have you renamed qb- to something custom? No

Additional context
Staff chat doesn't work either since it is connected to reporttoggle

@SharkyFP SharkyFP added the bug Something isn't working label Mar 5, 2022
@Yonatannn
Copy link

check if you have this functions in qb-core/server/functions.lua

function QBCore.Functions.IsOptin(source)
    local src = source
    local license = QBCore.Functions.GetIdentifier(src, 'license')
    if QBCore.Functions.HasPermission(src, 'admin') then
        return QBCore.Config.Server.PermissionList[license].optin
    end
end

@SharkyFP
Copy link
Author

SharkyFP commented Mar 5, 2022

Yes I have that function.

@SharkyFP
Copy link
Author

SharkyFP commented Mar 9, 2022

/report and /reporttoggle is fixed. I gave myself admin again and it worked.

There is still a issue with /staffchat where I get this in console
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants