RX Hopscotch Configuration
Everything a server owner sets is in config.lua, and it is kept short on purpose. The court layouts, minigame tuning, props, and animation names live in shared/internal.lua; they are made for the animations that ship with the resource and do not need changing.
Restart
rx_hopscotchafter changing the configuration.
Config.Locale = 'en'
Config.Command = 'hopscotch'
Config.LeaveKey = 'X'
Config.MaxPlayers = 6
Config.MaxCourtsPerPlayer = 1
Config.CourtLifetime = 45
Config.TurnTimeout = 75
Config.EliminationLaps = 3
Config.Difficulty = 'normal'
Config.FallChance = 0.4
Config.Debug = falseLanguage, command, and key
| Setting | Default | Behaviour |
|---|---|---|
Locale | 'en' | en, tr, de, fr, es, pt-br, or pl. Every text, from notifications to menus, minigames, mode names, and court names, is in locales/<code>.lua. |
Command | 'hopscotch' | One command for everything: draws a court, opens a court’s menu at its start line, and leaves the game a player is in. |
LeaveKey | 'X' | Held for a second, it leaves a running game. Players can rebind it under Settings > Key Bindings > FiveM. |
The court itself carries no words, only numbers and a chalk sun on the rest area, so it reads the same whatever the language.
Adding a language
- Copy
locales/en.lua, for example tolocales/it.lua. - On its first line, change
Locales['en']toLocales['it']. - Translate the texts on the right. Keep every
%sand%din the same order. - Set
Config.Locale = 'it'and restart.
Any line left out shows in English, never blank.
Courts and players
| Setting | Default | Behaviour |
|---|---|---|
MaxPlayers | 6 | Players per court. |
MaxCourtsPerPlayer | 1 | Courts one player may have drawn at once. |
CourtLifetime | 45 | Minutes an unused court stays drawn before it clears itself. |
The player who drew a court can also remove it from its menu, and so can anyone with the rx_hopscotch.admin ACE.
Turns and modes
| Setting | Default | Behaviour |
|---|---|---|
TurnTimeout | 75 | Seconds a turn may take before it counts as a miss. |
EliminationLaps | 3 | Elimination: rounds through every number before the players still in share the win. |
The game modes themselves are described in Gameplay.
Difficulty and falls
| Setting | Default | Behaviour |
|---|---|---|
Difficulty | 'normal' | 'easy', 'normal', or 'hard'. Moves every minigame easier or harder. |
FallChance | 0.4 | When a player loses their balance, the chance they really fall. Otherwise they put the other foot down and stumble. |
The minigames also get harder on their own as the target square moves further up the court, and in Elimination with every new round: the stone slides faster, the chalk figure tips sooner, and the balance lasts longer.
Debug
Config.Debug = true prints every turn’s stops and minigame results to the F8 console, and enables /hopscotch_bench, which prints what the per-frame calls cost on that machine in microseconds. Keep it off on a live server.