Advanced
Payments
Control cash vs. card per shop.
Players pay with cash or card (bank). You control which methods are allowed globally and per-shop.
Global default
config.lua
Config.DefaultPaymentMethods = { 'cash', 'card' }
Any shop that does not define its own paymentMethods uses this list.
| Value | Charges from |
|---|---|
'cash' | Player cash |
'card' | Player bank account |
Per-shop override
Add paymentMethods to a location (or a custom shop) to override the default:
config.lua
-- card only
{ id = 'ltd_1', label = 'LTD Gasoline', coords = vector4(...), catalog = 'convenience',
paymentMethods = { 'card' } },
config.lua
-- cash only
paymentMethods = { 'cash' },
How it's enforced
- The UI only shows the Pay by Cash / Pay by Card buttons that are allowed.
- On purchase, the server re-checks the method is allowed for that shop before charging.
cardremoves from the player'sbank;cashremoves fromcash.
If a player doesn't have enough in the chosen account, the purchase is rejected with a "not enough money" notification. Nothing is charged and no items are given.

