Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Minigames

Golf

FiveM Golf Minigame

freamee
Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: all 2 resources read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
Version
1.0.0
Dependencies
mysql-async
File size
2.5 MB
Creator
freamee
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

Description

A golf minigame for FiveM that comes in two versions: one for ESX and one standalone, where the ball is spawned with a command. It works best for community events where organizers tell players where to place the ball and which flag to hit, or just for fun.

Features

  • Four ball types: white, yellow, green and pink.
  • Four clubs (wood, iron, wedge, putter) with their own strength and swing animations.
  • Distance display to the selected flag and for the current hit.
  • Leaderboard that saves each player's longest hit in MySQL; command (golfboard) and number of players shown (10 by default) are configurable.
  • Different ball behavior on different ground materials, with sound and particle effects.
  • Terrain grid to check slopes, plus camera views for the flag, a top view and a big map.
  • Optional wind: direction and speed change the ball flight, and a colored marker shows the current wind strength (red = strong, blue = weak). Wind is off by default; the author could hardly hit anything with it on :smiley:

Config options

  • Wind force and tree leaf hits (stop the ball) on or off.
  • Club strengths (changing the defaults is not recommended).
  • Ground slowing speed and player rotation speed.
  • Keybinds for hit, aim, club change, cameras and exit.
  • Leaderboard on or off.
  • Whether the GTA weapon_club is required (off by default; the script removes it from the hand while you play because it attaches its own club).
  • Locales: English and Hungarian (ESX version).

Good to know

  • You can only select your own ball and spawn one ball at a time; spawning again deletes the old ball.
  • There is no automatic scoring or winner calculation.
  • The standalone version spawns the ball through one server-side event, so it can be adapted to other frameworks.
  • Known issue: after a ball lands and you select it again, nearby players sometimes see you rotated strangely around the ball.

Requirements

  • mysql-async (both versions)
  • ESX v1 final (ESX version only)

Installation

  • Use either the ESX_version or the Standalone folder and copy it into your resources folder (you can rename the folder).
  • Import the included golf.sql: it creates the golfhits table; the ESX file also adds the four golf ball items.
  • Add ensure with the folder name to your server config.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: all 2 resources of this download.

In your downloads
  • Brutal Scripts FiveM Baby Script menu and stroller preview
    • ESX
    • QBCore, vRP
    Not for your framework

    FiveM Baby Script

    Brutal Scripts

    $30.00$21.00
  • FiveM Surfing script preview
    • ESX
    Not for your framework

    FiveM Surfing script

    $4.99$3.49
  • Statistics & Achievements FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Statistics & Achievements

    kralik

    $19.00$13.30
  • Storm Chasing FiveM resource preview 2
    • ESX
    • QBCore, Qbox
    Not for your framework

    Storm Chasing

    Nights Software

    $35.00$24.50
  • 0R-PAINTBALL V2 FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    0R-Paintball V2 (Script Only)

    0Resmon

    $30.00$21.00
  • Brutal Gym FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Brutal Gym

    Brutal Scripts

    $14.00$9.80
  • FiveM Daily Lucky Wheel
    • ESX
    • QBCore
    Not for your framework

    Daily Lucky Wheel

    $14.00$9.80
  • FiveM Earthquake Script
    • ESX
    • QBCore, vRP
    Not for your framework

    EarthQuake Script

    $3.00$2.10