qbcore-framework / qb-shops

Shops For QB-Core
GNU General Public License v3.0
27 stars 215 forks source link

[BUG] / [ENHANCEMENT] Can Break Peds With Cornerselling #129

Closed Crazy133 closed 11 months ago

Crazy133 commented 1 year ago

Describe the bug Players can "cornersell" near shop peds and remove their frozen state, the ped will follow the player around until they interact with them and then flee or walk off from the store and remove the shop until qb-shops is restarted.

To Reproduce Steps to reproduce the behavior:

  1. Have Drugs
  2. Walk into store
  3. Cornersell.

Solution SetEntityDynamic(ShopPed[k], true)

This is the solution that I've found works, the Ped will ignore the player and can still be interacted with.

github-actions[bot] commented 11 months ago

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