Var FiveM
ScriptlerPaketlerAboneliklerDokumanlar
VAR
Var FiveM
ScriptlerPaketlerAboneliklerDokumanlar
Tema OzellestiriciHakkimizdaIletisim
Hemen Al

-- 28 sections

  • ›paintball
    • configuration
    • features
    • anti-cheat-integration
    • game-modes
    • api
    • arenas
    • command
    • config
  • ›chess
    • configuration
    • events
    • integration-example
    • exports
    • controls
    • config
  • ›supermarket simulator
    • configuration
    • catalog-manager
    • commands-and-permissions
    • props-editors
    • owning-and-running-a-store
    • config
  • ›coins shop
    • configuration
    • identifier
    • export
    • server-event
    • languages
    • products
    • delivery
    • owner-panel
    • webhooks-discord
  • ›clothes shop
    • installation
    • configuration
    • blips-marker
    • translate
    • change-cam-and-pos
  • ›casino
    • installation
    • configuration
    • main-config
    • horse
    • lucky-whell
    • translate
  • ›drugs
    • installation
    • configuration
    • labs-and-interiors
    • maintenance-and-modules
    • missions
    • street-selling
    • administration
  • ›clothes shop v2
    • installation
    • configuration
    • position
    • advice-and-troubleshooting
    • configure-clothing-shops
  • ›interaction
    • configuration
    • public-api
    • interaction-config-reference
    • dialog-system
  • ›emote
    • configuration
    • config
    • adding-emote
    • menu
    • keybind
    • modules
    • 3d-placement
    • playlist
    • wheel
    • shared-emotes
  • ›crew
    • installation
    • export
  • ›alert job
    • installation
    • server-export
  • ›pin code
    • installation
    • export
  • ›society manager
    • installation
    • export
    • configuration
    • translate
    • max-salary
    • last-invoice
  • ›property
    • installation
    • configuration
    • translate
    • add-interior
  • ›barber shop
    • installation
    • configuration
    • change-menu-open-source
    • blips
    • translate
    • add-shop
  • ›shop with basket
    • installation
    • configuration
    • item-category-config
    • blips-marker
    • translate
    • add-shop
  • ›tattoo shop
    • installation
    • configuration
    • edit-tattoo
    • blips-marker
    • translate
    • add-shop
  • ›gardener job
    • installation
    • configuration
    • change-pos-farm
    • blips
    • translate
  • ›heist atm
    • installation
    • configuration
    • event-money
    • translate
    • police-alert
  • ›heist fleeca
    • installation
    • configuration
    • translate
    • pos-fleeca-heist
  • ›poster job
    • installation
    • configuration
    • change-pos-farm
    • change-poster-texture
    • blips-marker
    • translate
  • ›loading screen
    • installation
    • configuration
  • ›bank
    • installation
    • configuration
    • position
    • blips
    • translate
    • society
  • ›autocardealer
    • installation
    • configuration
    • add-vehicles
    • translate
    • blips
    • coords
  • ›character creator
    • installation
    • configuration
    • translate
    • expression
    • spawn
  • ›multi character
    • installation
    • configuration
    • translate
    • change-character-creator
    • commands
  • ›bill
    • installation
    • configuration
    • translate
    • control

~/docs/coins-shop/configuration/export

coins shop docs›
  • configuration
  • configuration/identifier
  • configuration/export
  • configuration/server-event
  • configuration/languages
  • configuration/products
  • configuration/delivery
  • configuration/owner-panel
  • configuration/webhooks-discord

Coins Shop

Export

-- 8 code blocks · 1 min read

get var-coins-shoptry it on the test server

Public exports

All exports are server-side and live in server/exports.lua. They can be called from any other resource on your server.

AddCoins

Add coins to a player's account.

lua
exports['Var-Coins-Shop']:AddCoins(identifier, 500, {
  actor = "admin",
  reason = "event_reward"
})
Argument Type Description
identifier string Any accepted identifier (see below)
amount number Amount of coins to add
context table? Optional metadata logged in coins_shop_balance_log

Returns: new balance (number).

RemoveCoins

lua
exports['Var-Coins-Shop']:RemoveCoins(identifier, 100, { reason = "penalty" })

Same signature as AddCoins. Returns the new balance.

GetCoins

lua
local coins = exports['Var-Coins-Shop']:GetCoins(identifier)

Returns: current balance (number).

GetAccount

Returns the full account row: balance, locale, total spent, loyalty tier, etc.

lua
local account = exports['Var-Coins-Shop']:GetAccount(identifier)
-- { coins, locale, total_spent, tier, created_at, ... }

RefreshPlayer

Force the UI of a connected player to resync. Useful after an external AddCoins call when you want the in-game shop to update immediately.

lua
exports['Var-Coins-Shop']:RefreshPlayer(playerSourceId)
Argument Type Description
playerSourceId number The server ID of the connected player

RegisterSubscriptionPlans

Register subscription plans dynamically (useful if you generate them from another data source).

lua
exports['Var-Coins-Shop']:RegisterSubscriptionPlans({
  {
    id = "sub_vip",
    name = "VIP",
    price = 1000,
    billing = "monthly",
    durationDays = 30,
    perks = { "Priority queue", "5% discount" }
  }
})

GetSubscriptionState

Read a player's current subscription state.

lua
local state = exports['Var-Coins-Shop']:GetSubscriptionState(identifier)
-- { active = true, planId = "sub_vip", expiresAt = ..., ... }

Accepted identifier formats

identifier arguments accept any of the following formats. They are normalized internally by Accounts.resolveIdentifierInput:

  • Online server ID: 42
  • Cfx.re identifiers: steam:110000xxxx, license:xxx, license2:xxx, fivem:xxx, discord:xxx
  • Any registered alias for an offline player
  • Raw string fallback (treated as the canonical identifier)

The default lookup priority is configurable in shared/config.lua:

lua
Framework = {
  IdentifierPriority = { "license2", "license", "fivem", "discord", "steam" }
}
previousidentifiernextserver-event
VAR
Var FiveM

Premium FiveM scriptleri. Dusuk resmon, yuksek kalite. ESX, QBCore & Standalone icin yapildi.

28script
1,500+satis

Scriptler

  • Pazar Yeri
  • Paketler
  • Abonelikler
  • Tema Ozellestirici

En Populer

  • Supermarket Simulator
  • FiveM Casino Script
  • FiveM Coin Shop
  • FiveM Emote Menu
  • FiveM Paintball Script

Kaynaklar

  • Free Scripts
  • Guides
  • Dokumantasyon
  • Destek

Sirket

  • Hakkimizda
  • Iletisim
  • Discord

Yasal

  • Sartlar
  • Gizlilik
  • Iadeler

© 2026 Var FiveM. Tum satislar kesindir.

OdemelerTebex