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.number
required
The server ID of the player to invite
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.string
required
The course ID from
/mgcoursesExport a course
Writes a course todata/export/<courseId>.json.
string
required
The course ID from
/mgcoursesImport a course
Imports a course fromdata/import/. It gets a new ID, so importing the same
file twice creates two courses.
string
required
The file name inside
data/import/, for example skypark.jsonReset a leaderboard
Resets a course’s leaderboard for everyone.string
required
The course ID from
/mgcoursesReload 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.
string
Optional. The course to solve; the nearest course when left out
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