Vending Machines
Every vending machine already standing on the GTA map becomes usable — sodas, snacks, coffee, water, cigarettes. No coordinates to configure.
- Version
- 1.0.1
- Resource
- SF-Vending
Overview#
No coordinates
Nothing to place, nothing to survey. The hundreds of machines already on the map come alive when the resource starts.
Five machine types
Soda, snack, coffee, water and cigarettes, each matching its own GTA props.
Your own catalogue
Each type carries its own list of item, label and price. Add products, or your own machine models.
Purchase animation
A progress bar the player can cancel — and nothing is charged if they do.
Choice of account
Cash by default, or the bank account.
Automatic refund
If the inventory is full or the item does not exist, the money comes back on its own.
Targeting optional
With ox_target you target the machine. Without it, aim and press E.
Five languages
French, English, Spanish, German and Italian, in files that stay editable after escrow.
Dependencies#
| Resource | Required | What for |
|---|---|---|
ox_lib | Required | Interface and shared helpers |
ox_target | Optional | Otherwise aim and press E |
Installation#
- Drop
SF-Vendinginto yourresourcesfolder. - Declare the items you sell — see
ITEMS.md. - Add the line below to your
server.cfg, after ox_lib and your framework.
ensure ox_lib ensure SF-Vending
Configuration#
| Setting | Default | What it does |
|---|---|---|
Config.Machines | 5 types | Props and product catalogue for each machine type |
Config.Account | 'money' | Which account is charged — 'money' or 'bank' |
Config.BuyTime | — | How long the purchase animation runs |
Config.MaxDistance | — | How close you must stand |
Config.Cooldown | — | Delay between two purchases |
Config.Locale | 'fr' | fr · en · es · de · it |