Configuration

Where each Hunting setting lives and what the main settings in settings.lua do.

Hunting's settings are spread over a few files, all inside gg_hunting. Restart gg_hunting after you change one.

Where settings live

FileWhat it holds
utility.luaNotification and progress bar style, debug mode, framework, inventory, target and dispatch overrides, and the zone editor admins
config/shared/settings.luaLicense, rentals, hunting zones, police alerts, payment types, crossbow, tournaments schedule, meat locker, the lodge outfit and the weapons that count for kills
config/shared/general.luaNPC locations, rental vehicles and their carcass slots, shop and sell prices, tournaments, levels, leaderboards, campfire, daily challenges and bounties
config/shared/animals.luaEvery animal: label, spawn weight, legal or illegal, weight range, XP, level, butcher kit tier and rewards. Also baits, the animal tracker and butcher kits.
config/shared/traps.luaTrap animals, trap baits and the trap and motion sensor props
config/lang.luaEvery text players see
core/lib/miniBridge/client.luaHow Hunting gives vehicle keys and sets fuel on rentals
base/core/open/server/hooks.luaYour own license check and hooks for kills, gathering, purchases and sales
base/core/open/client/hooks.luaWhat happens when a player without a license opens a hunting menu

utility.lua

SettingDefaultWhat it does
debugModefalsePrints debug information, such as which resources were detected
notifications"ox"Notification style: ox, qb or esx
ProgressBar"ox"Progress bar style: ox, qb or esx
framework, inventory, target, dispatch""Leave empty to detect the resource. Set a resource name, for example inventory = "ox_inventory", to force it.
adminsexample entriesWho can use the zone editor

Detection takes the first supported resource it finds installed, even a stopped one. If you have two inventories or two targets in your resources folder, set the override so Hunting uses the one you run.

General

SettingDefaultWhat it does
ui.primary_color"rgb(247, 247, 247)"Accent colour of the hunting tablet
general.clothing_enabledtrueAdds Swap Hunting Outfit at the Hunting Lodge. The outfit is in clothing at the bottom of the file.
general.crosshair_enabledtrueShows the crosshair while you hold the rifle or crossbow, on servers whose qb-smallresources or qbx_smallresources hides it
general.rentals.return_value0.5Share of the rental price paid back when the vehicle is returned
general.rentals.return_distance25How close to the lodge, in metres, the vehicle must be to return it
hunting_license.require_licensetruePlayers need a license to use the Hunting Lodge, Meat Locker and Trapper
hunting_license.price500License price
illegal_hunter.bountyCooldown60Minutes before a player can start another bounty
validWeaponsrifle and crossbowWeapons whose kills count. See Common problems for custom weapons.

Hunting zones

These live in huntingZones. How to draw the zones themselves is in Create hunting zones.

SettingDefaultWhat it does
activeZones5How many zones are open at a time
zoneDuration120Minutes before the open zones rotate
enterDelay60Seconds a player stays in a zone before it counts them as inside
spawnCooldown30Seconds between spawn attempts for each player
killCooldown60Seconds after a kill before new animals spawn for that player
maxPlayerSpawns2Most live animals one player can have in a zone
maxZoneSpawns7Most live animals in one zone
blockDefaultSpawnstrueStops GTA's own scenario peds and animals in a zone while a player is in it, and around the Hunting Lodge
requireKillsWithinZonefalseWhen true, kills outside an open zone don't count
densityTierslow, normal, highEach animal in an open zone rolls a tier. spawnChance is its chance to spawn on each attempt and probability is how often the tier is picked.
placement.bait_in_zonetrueBaits can only be placed inside an open zone
groundHashesnatural ground typesGround types animals spawn on and campfires and traps can be placed on. Keep the defaults.

Police alerts

alerts sends a dispatch alert when someone kills an illegal animal (illegal_hunting, code 10-33) or hunts outside an open zone (hunting_outside_zones, code 10-34).

SettingDefaultWhat it does
police_jobspolice, sheriffJobs that receive the alerts
alert_chance100Percent chance an alert is sent
dispatch.enabledtrueSet to false to turn that alert off
dispatch.message, code, icon, priority, time, blipWhat the alert looks like in your dispatch

Alerts need one of the dispatch resources Hunting detects.

Payment types

Each entry in payment_types is "cash" by default. Set it to "bank" to use the bank account instead.

SettingUsed for
hunting_lodge_shopBuying from any hunting shop, and the hunting license
hunting_lodge_sellSelling to any hunting NPC
hunting_lodge_return_vehicleMoney back when a rental is returned
hunting_lodge_claim_dailyDaily challenge rewards
hunting_lodge_claim_tournamentTournament rewards
illegal_hunter_claim_bountyBounty rewards

Renting a vehicle always takes cash.

Crossbow, tournaments and meat locker

SettingDefaultWhat it does
crossbow.ArrowDeleteTimeout30Seconds before a fired arrow is removed
crossbow.ArrowOutlineon, yellowOutline on fired arrows, with its RGBA colour
tournaments.schedule12:00 for 90 minutes, 16:00 for 200 minutesWhen tournaments start and how long they run, in the server's local time
meatlock.lockerSlots5How many animals a player can have in the meat locker at once
meatlock.npctrueA worker walks out and carries the animal in
meatlock.npcSpawnLocationby the Meat LockerWhere that worker appears

How long the meat locker takes is set for each animal in config/shared/animals.lua, as meatlocker_processtime in minutes.

Advanced

SettingDefaultWhat it does
advanced.level_kill_requiretrueA kill only counts when the player has the animal's required level
advanced.should_notify_level_requiredtrueTells the player which level they need when a kill doesn't count
advanced.networked_entitytrueNetworks the bait props and bait animals. Leave it on.

Support

Questions before you buy?

Ask the team in our Discord before you pay a thing. Setup help, update notes, giveaways and discount codes, all in one place.

831 online now2,241 members