Config.Commands in config.lua. The
names below are the defaults.
Keybinds
All keybinds are registered through FiveM’s key mapping system, so every player can rebind them underSettings → Key Bindings → FiveM without
touching your config.
The decline key defaults to Backspace because N is FiveM’s push-to-talk
key. All other in-game keys (aiming, shooting, editor placement) are listed
on Playing and
Course Editor.
Player commands
Course finder
Lists every playable course, nearest first, with distance, holes, par, open lobbies, the record and your best, plus a waypoint button.Course menu
Opens the menu of the nearest course start, or your lobby.Leave
Leaves the current game or lobby.Invite
Invites a player into your lobby. Host only. The player accepts with Y.Player building
Only when player building is on (Config.Build.enabled).
Build menu
Your own courses and the ones you help build, the piece shop, your build box and course plans.Piece shop
Opens the shop tab of the build menu. Works anywhere withConfig.Build.shopCommand, otherwise at a shop counter.
Admin commands
Editor
Opens the course editor. Same as F7.List courses
Lists every course with its ID, number of holes and whether it is open.Teleport to a course
Teleports you to a course’s start point. In game only.Export a course
Writes a course todata/export/<courseId>.json.
Import a course
Imports a course fromdata/import/. It gets a new ID, so importing the same
file twice creates two courses.
Reset a leaderboard
Resets a course’s leaderboard for everyone.Reload courses
Reloads all courses from disk, for example after you edited a file indata/
by hand. Pending scores are written first, and only new or changed courses are
sent to players.
Putter tuning
Tunes the putter position, putter rotation, stance and ball contact while you address a ball in a test, practice or solo round. Enter prints the lines forconfig.lua to the F8 console; /mgputter again ends it. Changes are live on
your client only.
Showcase
For trailers: works out strokes that play every hole of the nearest course (or the given one) into the cup with the real ball physics, and keeps them on your client. Stand at the course, outside any game or the editor. It takes about a minute, and runs again only when the course changed. Camera tools then start the balls with theShowcaseCue export.
From the server console
/mgcourses, /mgexport, /mgimport, /mgresetscores and /mgreload also
work from the server console (without the slash). /mgtp is in game only.
Server console