This FiveM script enables players to interact with vending machines using the interaction menu. You can download the interaction menu from here.
The script is compatible with qb-core and qb-hud, but it can be easily adapted for other frameworks, HUDs, and target scripts due to its simplicity.
interactionMenu
/ ox_target
/ qb-target
Installation is straightforward. Ensure you have the interaction menu installed and place this script after its dependencies in your server.cfg
file:
ensure interactionRenderer
ensure interactionDUI
ensure interactionMenu
ensure [qb]
ensure keep-vendingMachines