Skip to main content
Golf

Installation

Install the golf resource, configure its commands and locales, and optionally enable the database leaderboard.

Required dependencies

FiveM artifact 4752+

Required for Lua 5.4 and escrow support.

MySQL

Optional dependency used by the leaderboard feature.

Installation steps

  1. 01

    Extract the selected version

    Copy the required version folder into your server resources directory.

  2. 02

    Configure commands

    Edit the included server commands or connect the provided events.

    server/server.lua
  3. 03

    Configure locales

    Create a locale file or edit the default English translation.

    en.lua
  4. 04

    Review the configuration

    Adjust supported settings carefully to avoid affecting gameplay calculations.

    config.lua

Enabling the leaderboard

The leaderboard requires MySQL. Import golf.sql into your database, then enable the feature in config.lua.

Configuration

Leaderboard configuration

Enable the leaderboard command and configure how many players it displays.

config.lua
Config.Toplist = {
Enabled = true, -- Enable or disable the command. Information is still collected in MySQL.
Command = 'golfboard',
Count = 10 -- how many players shown in the leaderboards, html.
}