This weapon shop script allows players to purchase weapons and their accessories using ox_lib menus and notifications. The shop's NPC is created using ox_target, and it enables players to open the shop menu, choose weapons from categories, and purchase them.
Features:
NPC Interaction:
ox_target, allowing players to open the weapon shop by interacting with it. The NPC is stationary and does not spin, making interactions straightforward.Weapon Shop Menu:
ox_lib menus to display weapon categories and weapons. Players can select a category, view a list of weapons, and choose the weapon they wish to purchase.Purchase Process:
ox_lib about successful or failed purchases. If the purchase is successful, the player is notified about receiving the weapon and any additional items, such as ammunition.Notifications:
ox_lib notifications are used to inform players about successful or unsuccessful purchases and other important events.