Var FiveM
SkryptyPakietySubskrypcjeDokumentacja
VAR
Var FiveM
SkryptyPakietySubskrypcjeDokumentacja
Kreator motywuO nasKontakt
Kup teraz

-- 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/chess/configuration/events

chess docs›
  • configuration
  • configuration/events
  • configuration/integration-example
  • configuration/exports
  • configuration/controls
  • configuration/config

Chess

Events

-- 3 code blocks · 1 min read

get var-chesstry it on the test server
inote

All three are server-side, server-to-server events. Integrators react with AddEventHandler in a server script.

var_chess:server:matchStarted

Fires when a match starts (status becomes playing).

lua
-- payload: { id, white, black, bet = { white, black }, ai }
-- white / black: seat server id (number), or nil when that seat is the AI.  ai: boolean.
AddEventHandler('var_chess:server:matchStarted', function(data)
    print(('chess started at table %s, ai=%s'):format(data.id, tostring(data.ai)))
end)

var_chess:server:matchEnded

Fires when a match ends (checkmate, resign, draw or forced).

lua
-- payload: { id, winner = 'white' | 'black' | nil, reason, white, black, pot }
-- reason: 'checkmate' | 'resign' | 'stalemate' | 'fifty' | 'forced'.  pot: total staked.
AddEventHandler('var_chess:server:matchEnded', function(data)
    print(('chess ended at table %s, winner=%s pot=%s'):format(data.id, tostring(data.winner), data.pot))
end)

var_chess:server:move

Fires after each validated move is applied.

lua
-- payload: { id, color = 'white' | 'black', from, to, capture }
-- from / to: algebraic squares ('e2', 'e4').  capture: captured piece code ('bp') or nil.
AddEventHandler('var_chess:server:move', function(data)
    print(('table %s: %s %s-%s'):format(data.id, data.color, data.from, data.to))
end)
previousconfigurationnextintegration-example
VAR
Var FiveM

Skrypty FiveM premium. Niski resmon, wysoka jakość. Stworzone dla ESX, QBCore i Standalone.

28skrypty
1,500+sprzedaze

Skrypty

  • Marketplace
  • Pakiety
  • Subskrypcje
  • Kreator motywu

Najpopularniejsze

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

Zasoby

  • Free Scripts
  • Guides
  • Dokumentacja
  • Wsparcie

Firma

  • O nas
  • Kontakt
  • Discord

Informacje prawne

  • Regulamin
  • Prywatność
  • Zwroty

© 2026 Var FiveM. Wszystkie sprzedaze sa ostateczne.

Płatności obsługujeTebex