qbcore-framework / qb-drugs

Drugs Script For QB-Core :herb:
GNU General Public License v3.0
34 stars 185 forks source link

[BUG]dealer not showing #120

Closed riceonly1 closed 1 year ago

riceonly1 commented 1 year ago

Describe the bug A clear and concise description of what the bug is. A stranger to qbcore should be able to read your bug report and understand how to reproduce it themselves and understand how the feature should work normally.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Use this item '....' (item's name from shared.lua if applicable)
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Questions (please complete the following information):

Additional context Add any other context about the problem here.

MentalIllness commented 1 year ago

What you mean by "go to ...." and "click on ...." Can't really understand you

riceonly1 commented 1 year ago

What you mean by "go to ...." and "click on ...." Can't really understand you

oh dont mind that, the problem is when i create a dealer its not showing but its created in database i dont know why and i never touch the qb drugs

MadDeviil commented 1 year ago

same issue

kikocodingpt commented 1 year ago

Me too men me too

ae453 commented 1 year ago

Hey there! If you're still having this issue, navigate to qb-drugs\client\deliveries.lua.

Open that Lua script, and scroll down to around line 243, this line should be if #Config.Dealers == 0 then return end.

Remove that line of code, or comment it out using two hyphens at the beginning of the line (--if #Config.Dealers == 0 then return end) and this should fix it!

Hopefully this fixes the issue at hand. Have a great rest of your day / night!

Courtesy of the linked comment below on another issue

https://github.com/qbcore-framework/qb-drugs/issues/114#issuecomment-1490650900