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_hopscotch after changing the configuration.

Lua
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 = false

Language, command, and key

SettingDefaultBehaviour
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

  1. Copy locales/en.lua, for example to locales/it.lua.
  2. On its first line, change Locales['en'] to Locales['it'].
  3. Translate the texts on the right. Keep every %s and %d in the same order.
  4. Set Config.Locale = 'it' and restart.

Any line left out shows in English, never blank.

Courts and players

SettingDefaultBehaviour
MaxPlayers6Players per court.
MaxCourtsPerPlayer1Courts one player may have drawn at once.
CourtLifetime45Minutes 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

SettingDefaultBehaviour
TurnTimeout75Seconds a turn may take before it counts as a miss.
EliminationLaps3Elimination: rounds through every number before the players still in share the win.

The game modes themselves are described in Gameplay.

Difficulty and falls

SettingDefaultBehaviour
Difficulty'normal''easy', 'normal', or 'hard'. Moves every minigame easier or harder.
FallChance0.4When 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.