Immersion

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
Version 1.0.1 Resource SF-Vending Frameworks ESX · QBCore · QBX · Standalone Bundled languages 5 Store page View

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#

ResourceRequiredWhat for
ox_libRequiredInterface and shared helpers
ox_targetOptionalOtherwise aim and press E

Installation#

  1. Drop SF-Vending into your resources folder.
  2. Declare the items you sell — see ITEMS.md.
  3. Add the line below to your server.cfg, after ox_lib and your framework.
server.cfg
ensure ox_lib
ensure SF-Vending

Configuration#

SettingDefaultWhat it does
Config.Machines5 typesProps and product catalogue for each machine type
Config.Account'money'Which account is charged — 'money' or 'bank'
Config.BuyTimeHow long the purchase animation runs
Config.MaxDistanceHow close you must stand
Config.CooldownDelay between two purchases
Config.Locale'fr'fr · en · es · de · it

Good to know#

The client never sends a price. It sends the machine type and the product index; the server reads the price from its own config, checks the money, the cooldown and the distance, then charges and delivers.
Machine types ship mapped to real GTA props: prop_vend_soda_01/02 and prop_vend_fridge01, prop_vend_snak_01, prop_vend_coffe_01, prop_vend_water_01, prop_vend_fags_01.
After editing any file, run refresh then restart SF-Vending. A restart on its own does not re-read the fxmanifest.