qbcore-framework/qb-garages

after adding house garage it works until you restart and pull car out then try to park it again it says can't park car here. And I own the house created.[BUG]

hek174 opened this issue · 4 comments

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):

  • When you last updated: [e.g. last week]
  • Are you using custom resource? which ones? [e.g. zdiscord, qb-target]
  • Have you renamed qb- to something custom? [e.g. yes/no]

Additional context
Add any other context about the problem here.

This issue has had 60 days of inactivity & will close within 7 days

if type == 'house' and not exports['qb-houses']:hasKey(Player.PlayerData.license, Player.PlayerData.citizenid, Config.Garages[garage].houseName) then
    cb(true)
else
    cb(false)
end

I changed the code in the server/main.lua to this and it seems to be working

This issue has had 60 days of inactivity & will close within 7 days

if type == 'house' and not exports['qb-houses']:hasKey(Player.PlayerData.license, Player.PlayerData.citizenid, Config.Garages[garage].houseName) then
    cb(true)
else
    cb(false)
end

I changed the code in the server/main.lua to this and it seems to be working

What line did you replace this on in the .lua?