I Built a Playable Arcade Inside My FiveM Server — Tetris, Breakout, Space Invaders and More

The idea Our QBCore RP server had an arcade cabinet prop sitting in a few locations around the map. It was purely decorative. Players would walk past it every session and nothing happened. I wanted...

By · · 1 min read
I Built a Playable Arcade Inside My FiveM Server — Tetris, Breakout, Space Invaders and More

Source: DEV Community

The idea Our QBCore RP server had an arcade cabinet prop sitting in a few locations around the map. It was purely decorative. Players would walk past it every session and nothing happened. I wanted it to actually work — walk up, press E, and play a real game inside the game. The result: exs-arcade — a fully playable in-game arcade system built with Svelte + TypeScript for the UI, Lua for FiveM integration, and a server-side ranking system backed by MySQL. What's inside Four playable games, each with its own engine and Svelte component: Block Puzzle (Tetris) — classic falling block game Alien Shooter (Space Invaders) — wave-based shooter Brick Breaker (Breakout) — paddle and ball Racing — time attack mode Plus a global ranking board that tracks top scores per game and an overall leaderboard combining all scores. How it works The architecture is split into three layers. Lua client detects nearby arcade cabinet props and shows an interaction prompt. When the player presses E, it freezes t