Skip to main content
Every command name can be changed in 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 under Settings → 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

Admin commands need admin rights: the ACE minigolf.admin, an ESX group, a QBCore permission, a Qbox ACE group, a listed identifier or your own check.

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 /mgcourses

Export a course

Writes a course to data/export/<courseId>.json.
string
required
The course ID from /mgcourses

Import a course

Imports a course from data/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.json
Export on one server, copy the file from data/export/ to data/import/ on the other server, import it there and move it with Move course here in the editor.

Reset a leaderboard

Resets a course’s leaderboard for everyone.
string
required
The course ID from /mgcourses

Reload courses

Reloads all courses from disk, for example after you edited a file in data/ 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 for config.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 the ShowcaseCue 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