config.lua without touching any encrypted code.
Dependencies
| Dependency | Required | Notes |
|---|---|---|
| PolyZone | ⚠️ Conditional | Required unless Config.GolfAnywhere = true |
| sh-notify | ❌ Optional | Used when Config.SHNotify = true; falls back to chat |
Commands
| Command | Description |
|---|---|
/golf | Start the golf minigame (command name is configurable) |
/propstuck | Remove any prop stuck to your character (command name is configurable) |
Configuration
All options are set inconfig.lua. The file is straightforward — every value is a single line with no nested tables.
config.lua
ACE Permission Setup
If you want to restrict golfing to certain player groups (for example, VIP members), enable the permission gate and add the appropriate ACE entries to yourserver.cfg.
Enable permission restriction
In
config.lua, set Config.PermRestrict = true and choose a permission node name via Config.PermName.Grant the ACE to a group
Add the allow rule in
server.cfg, replacing vip with the group you want to grant access:server.cfg
Players without the ACE permission receive a notification when they attempt to use
/golf and the command does nothing. No errors are thrown server-side.Customising the Golf Zone
The PolyZone boundary that defines the allowed golf area is stored inlocations.lua. This file is escrow-ignored, so you can edit it freely without breaking the resource’s encrypted code.
Open locations.lua and replace the existing vector2 coordinate list with one that matches your custom golf course boundary. Each coordinate is a corner point of the polygon that outlines the playable area.
locations.lua