Common Issues
This guide addresses common issues and questions when setting up or using the Dusa Hunting System.
Table of Contents
Installation Issues
Script Won't Start
Symptoms: Script fails to start, console shows errors
Common Causes:
Missing dependencies
Incorrect resource order
Corrupted files
Wrong folder name
Solutions:
Check dependencies are installed and started:
ensure ox_lib ensure dusa_bridge ensure dusa_hunting
Verify folder name is exactly
dusa_hunting
Check console for specific error messages
Ensure proper load order:
ox_lib must start before dusa_hunting
dusa_bridge must start before dusa_hunting
Verify file integrity - re-download if necessary
Database Errors
Symptoms: SQL errors on resource start
Solutions:
Manual import: Import the provided SQL file if auto-creation fails
Check permissions: Ensure database user has CREATE TABLE privileges
Verify connection: Check your framework's database connection
Missing ox_lib Error
Symptoms: Error message about missing ox_lib
Solution:
Download ox_lib from: https://github.com/overextended/ox_lib/releases
Place in resources folder
Add to server.cfg BEFORE dusa_hunting:
ensure ox_lib
Animal Spawning Issues
Animals Not Spawning
Symptoms: No animals appear in hunting zones
Common Causes:
Player not in hunting zone
Zone configuration issue
Model not loaded
maxCount too low
Solutions:
Check zone radius:
Config.HuntingZones['Zone1'] = { coords = vec3(x, y, z), range = 250.0, -- Increase if needed }
Enable debug mode to see zone boundaries:
debug = true
Verify animal model exists in game
Increase maxCount:
animal = { maxCount = 15, -- Increase from 5 }
Warning: Don't set too high (causes performance issues)
Check console for model loading errors
Animals Not Responding to Shots
Symptoms: Animals don't die when shot
Common Causes:
Using non-hunting weapon
OnlyHuntByHuntingWeapons enabled
God mode enabled
Solutions:
Check weapon configuration:
Config.OnlyHuntByHuntingWeapons = true Config.HuntingWeapons = { 'WEAPON_DHR31', -- Add your weapon here }
Disable god mode on player
Verify weapon ammo type is correct
Item & Inventory Issues
Items Not Appearing in Inventory
Symptoms: Killed animal but no items received
Common Causes:
Inventory full
Items not added to inventory system
Item name mismatch
Solutions:
Check inventory space - ensure player has room
Verify items are registered in inventory:
-- QBCore: shared/items.lua -- ESX: database items table ['deer_beef'] = { label = 'Deer Beef', weight = 200, -- ... }
Check item names match exactly between:
Config files
Inventory items
Database
Check console for "item not found" errors
Images Not Showing
Symptoms: Item images appear as placeholders
Solutions:
Check image paths exist:
Default:
ox_inventory/web/images/ (or your inventory)
Format:
item_name.png
oritem_name.webp
Set correct extension in config:
Shared.InventoryImageExtension = 'png' -- or 'webp'
Verify image files are named exactly as item names
Clear browser cache if using web-based inventory
Shop & NPC Issues
Shop NPC Not Appearing
Symptoms: Shop ped doesn't spawn
Solutions:
Check coordinates:
Shared.Shop.Ped.coords = vec4(x, y, z, heading)
Verify model exists:
Shared.Shop.Ped.model = 'a_m_m_hillbilly_01'
Ensure shop is enabled:
Shared.EnableShopSystem = true
Check distance - you may be too far
Restart resource after config changes
Can't Interact with Shop
Symptoms: Can't open shop menu
Common Causes:
Wrong interaction system
Job requirement
Distance too far
Solutions:
Check interaction system:
Config.UseTarget = false -- Use dusa_bridge -- OR Config.UseTarget = true -- Use target system
Disable job requirement:
Config.RequireJob = false
Increase interaction distance:
Shared.Shop.Ped.distance = 5.0 -- Increase from 3.5
Verify target system is installed (if using target)
Shop Prices Wrong
Symptoms: Items selling for incorrect prices
Solutions:
Check quality multipliers:
Shared.Shop.QualityMultipliers = { [1] = 1.0, -- 100% [2] = 1.5, -- 150% [3] = 2.0, -- 200% }
Verify base prices:
Shared.Shop.Sell = { { item = 'deer_beef', price = 45 -- Base price } }
Remember: Final price = base price × quality multiplier
Vehicle Rental Issues
Vehicle Not Spawning
Symptoms: Money deducted but no vehicle
Solutions:
Check spawn location is clear:
Shared.Rent.coords = vector3(x, y, z)
Verify vehicle model exists:
Shared.Rent.vehicle = 'sandking'
Check console for spawn errors
Money is refunded automatically if spawn fails
Can't Return Vehicle
Symptoms: Unable to return rented vehicle
Solutions:
Must be in vehicle and in return zone
Must be driver (seat -1)
Must be vehicle owner (renter)
Check return zone location:
-- Vehicle return zone is at rental location Shared.Rent.coords = vector3(x, y, z)
Vehicle Keys Not Working
Symptoms: Can't access vehicle after rental
Solutions:
Check vehicle key system is installed and supported, if not integrate yourself:
dusa_vehiclekeys
wasabi_carlock
qb-vehiclekeys
qs-vehiclekeys
vehicles_keys
ak47_vehiclekeys
Renewed-Vehiclekeys
Verify integration in
game/opensource/functions.lua
Check console for key system errors
Quest & Level System Issues
Quest Progress Not Updating
Symptoms: Quests don't track progress
Solutions:
Check quest type matches action:
type = 'hunt'
- Requires killing animalstype = 'trap'
- Requires trapping animalstype = 'cook'
- Requires cooking meat
Verify target_animal matches:
target_animal = 'deer' -- Must match Shared.Species type
Check database quest_progress table
Use export to update manually:
exports['dusa_hunting']:UpdateQuestProgress(source, 'hunt', 'deer', 1)
Not Gaining XP
Symptoms: No experience from hunting
Solutions:
Check XP is configured for zone:
animal = { xp = 10, -- XP per kill }
Verify level system is working:
Config.MaximumLevel = 10
Check database hunting_data table
Add XP manually for testing:
exports['dusa_hunting']:addExperience(source, 50)
Level Not Increasing
Symptoms: XP increases but level stays the same
Solutions:
Check XP requirements - may need more XP
Verify max level isn't reached:
Config.MaximumLevel = 10
Check title configuration:
Config.Title = { beginner = 1, novice = 2, -- ... }
Performance Issues
Server Lag with Animals
Symptoms: Server performance drops in hunting zones
Solutions:
Reduce maxCount per zone:
animal = { maxCount = 8, -- Reduce from 15 }
Reduce number of zones simultaneously active
Increase CheckInterval:
Config.CheckInterval = 5 -- Check every 5 minutes instead of 1
Disable debug mode:
debug = false
Client FPS Drops
Symptoms: FPS drops near hunting zones
Solutions:
Reduce animal models - use lower poly models
Reduce maxCount in zones
Optimize zone ranges:
range = 150.0 -- Reduce from 300.0
Integration Issues
Framework Not Detected
Symptoms: "Framework not found" errors
Solutions:
Check dusa_bridge is installed and started
Verify framework is started before dusa_hunting
Check framework support:
QBCore
ESX
QBox
Update dusa_bridge to latest version
Custom Inventory Not Working
Symptoms: Items don't work with custom inventory
Solutions:
Check inventory is supported by dusa_bridge
Verify metadata support in inventory
Contact support for custom inventory integration
Frequently Asked Questions
Can I add custom animals?
Yes! See the Configuration Guide - Adding Custom Animals section.
Does it work with ESX/QBCore/QBox?
Yes, via dusa_bridge.
Can I disable the tournament system?
Yes:
Shared.EnableTournamentSystem = false
How do I change the shop location?
Edit in config_shared.lua
:
Shared.Shop.Ped.coords = vec4(x, y, z, heading)
Can players hunt without the hunting rifle?
Configure in config_client.lua
:
Config.OnlyHuntByHuntingWeapons = false -- Allow any weapon
How do I add more hunting zones?
Add new entries in config_client.lua
:
Config.HuntingZones['NewZone'] = {
name = 'My Custom Zone',
type = 'deer',
coords = vec3(x, y, z),
range = 250.0,
-- ...
}
Can I customize XP requirements?
XP requirements are calculated automatically based on level. To modify, edit the level system in server-side scripts.
How do I reset a player's hunting data?
Delete or update the player's entry in the dusa_hunting
database table.
Does it support multiple languages?
Yes! Currently supports:
English (
en
)Turkish (
tr
)
Add more in locales/
folder.
How do I disable the DUI laptop?
In config_shared.lua
:
Shared.EnableDUILaptop = false
How do I get support?
Check this documentation first
Review console errors
Contact script author
Join support Discord
Open a ticket with:
Error messages
Server version
Framework version
Steps to reproduce
Debugging Tips
Enable Debug Mode
In config_shared.lua
:
Shared.Debug = true
This will show detailed logs in console.
Check Console Logs
Always check both:
Server console - for server-side errors
F8 console - for client-side errors
Test in Steps
Test shop first
Then test animal spawning
Then test killing/butchering
Finally test quests/tournaments
Common Error Messages
"Player not found"
Framework player object not loading
Check framework is running
Player may not be fully loaded
"Item not found"
Item not registered in inventory
Check item name matches exactly
"Model not found"
Animal/ped model doesn't exist
Check model name is correct
Some models require DLC
"Callback timeout"
Server not responding
Check server performance
Increase timeout if needed
Still Having Issues?
If your issue isn't covered here:
Re-read installation guide carefully
Check for updates - newer version may fix it
Review API reference for correct usage
Contact support with:
Detailed description
Error messages
Server/framework versions
Configuration files
Steps to reproduce
Reporting Bugs
When reporting bugs, include:
Script version: Check
fxmanifest.lua
Framework: QBCore/ESX/QBox and version
Error message: Full error from console
Steps to reproduce: How to trigger the bug
Expected behavior: What should happen
Actual behavior: What actually happens
Related configuration: Relevant config sections
This helps developers fix issues faster!
Last updated