Setting up controls
Last updated
Last updated
New actions by adding more entries to this list. Here's what each field means:
firstControl
: The main key that triggers the action. You can find control codes here: .
secondControl
(optional): If set, the action only triggers when both firstControl
and secondControl
are pressed together.
action
: The ID of the action to execute (e.g., turning, accelerating, etc). Reference: .
maxSpeed
(optional): Sets the maximum speed (in km/h) that the player can reach when this control is active.
callback
(optional): A function that executes custom logic when the control is triggered (e.g., animations, boosts, etc).
You can mix and match control keys, actions, speed limits, and custom behavior to create a unique skating experience.
After creating your custom control inside config.controls
, you also need to add an in-game description so players know how to use it.
To do this, navigate to:
brnx-iceorinksystem/modules/client/custom/functions/helpText.lua
Inside this file, there is a function responsible for displaying help messages on the screen (e.g., "Press W to move forward").
🔧 You must add your new control here, with a short instruction label, so it properly appears in the game for the player.
This makes your control not only functional, but also easy to understand and user-friendly.