renzuzu / renzu_shops

Fivem Advanced Shops with stocks and player owned shops using ox_inventory , ox_lib. Item metadata supports and item customisation.
GNU General Public License v3.0
80 stars 38 forks source link

Buying Items Permissions #76

Closed Legacy-TacticalGamingInteractive closed 1 year ago

Legacy-TacticalGamingInteractive commented 1 year ago

Do you know if its possible to add an Ace Permissions check to shop items directly for people running ox inventory with this script who are on standalone servers?

I've seen one script do this where they added it to their items buying code itself which worked great and would not allow someone to buy the item in the shop without the proper Ace permission. But as whole on the shop end of things it might be easier than every single script themselves.

Useful for weapons as well as many servers are using these perms synced with Discord roles.

renzuzu commented 1 year ago

why not just remove the weapon on equiped if player dont have permission to use?

i will try to look if your suggested logic is possible in client side so player wont see the item in shop if dont have permission