Troubleshooting
Troubleshooting & Common Errors
Purpose of This Guide
This troubleshooting guide is designed to help server administrators and users quickly identify and resolve common issues with the GOD - Nail Trap System.
Why is this important?
Saves Time: Instead of searching through code or asking for help, users can find solutions to common problems immediately
Reduces Support Load: Most common issues are documented here, reducing repetitive support requests
Self-Service: Users can fix problems themselves without waiting for support
Best Practices: Includes prevention tips to avoid issues before they occur
What's included:
Common error messages and their solutions
Step-by-step debugging processes
Prevention tips to avoid future issues
Configuration verification steps
Resource dependency checks
This guide helps you diagnose and fix common issues with the GOD - Nail Trap System.
Common Errors
Error: "ox_lib not found" or "ox_lib export not available"
Symptoms:
Script fails to start
Progress bars don't work
Notifications don't appear (ESX)
Solution:
Ensure
ox_libis installed and up to dateVerify
ox_libis started beforeJ0-nailScriptinserver.cfg:Restart both resources
Prevention:
Always start dependencies before dependent resources
Keep
ox_libupdated to the latest version
Error: "Framework export not found" or "Core object not available"
Symptoms:
Script fails to initialize
Items don't work
Server console shows framework errors
Solution:
Verify your framework is running:
QBCore: Check
qb-coreis startedESX: Check
es_extendedis startedQbox: Check
qbox_coreis started
Check
shared/config.luamatches your framework:Ensure framework resource is started before
J0-nailScript
Prevention:
Double-check framework name spelling
Verify framework resource name matches exports
Error: "Inventory export/function not found"
Symptoms:
Items can't be added/removed
Server errors when using nails
Inventory operations fail
Solution:
Verify inventory system is running:
ox_inventory: Check resource is started
qb-inventory: Check resource is started
Check
shared/config.luamatches your inventory:For ESX, ensure you've registered useable items (see Installation Guide)
Prevention:
Match inventory configuration to installed system
Test inventory functions separately
Error: "Targeting system not found" or "Target export not available"
Symptoms:
Can't interact with nails
"Remove Nails" option doesn't appear
Targeting errors in console
Solution:
Verify targeting system is installed and running:
ox_target: Check resource is started
qb-target: Check resource is started
interact: Check resource is started
Check
shared/config.luamatches your targeting system:Ensure targeting resource is started before
J0-nailScriptAs a fallback, try setting to
"interact"if you have it installed
Prevention:
Install a compatible targeting system
Verify targeting system exports are available
Error: "Failed to create nail object" or "Entity does not exist"
Symptoms:
Nails don't appear when placed
Items are consumed but nothing spawns
Client console shows object creation errors
Solution:
Verify custom prop model is available:
Check if prop is streamed in your server
Verify custom model is installed correctly
Ensure model files are in the correct location
Check client console for specific error messages
Verify player has proper permissions to spawn objects
Contact support if you need to use a different prop model
Prevention:
Ensure custom props are properly streamed
Test prop spawning separately
Error: Items consumed but nails don't spawn
Symptoms:
Item disappears from inventory
No nail appears in game
No error messages
Solution:
Check server console for errors during nail placement
Verify custom prop model exists and is streamed
Check client console for spawn errors
Verify
ox_libprogress bar completes successfullyCheck if player has proper coordinates (not in invalid location)
Prevention:
Test in a known-good location
Verify all dependencies are working
Error: Nails don't damage tires
Symptoms:
Nails are visible and vehicles drive over them
No tire damage occurs
Tires don't burst
Solution:
Verify damage configuration in
shared/config.lua:Check if vehicle has proper wheel bones (most vehicles do)
Verify you're actually driving over the nail (within 0.5 units)
Check client console for damage detection errors
Test with a different vehicle
Prevention:
Test damage settings in configuration
Verify vehicle models have proper bone structure
Error: "You Can't Place More Than 20 At A Time"
Symptoms:
Message appears when using nail package
Can't place more nails
Solution: This is not an error - it's the built-in limit. To change it:
Contact support for assistance with adjusting the maximum nails per package limit
Prevention:
Adjust limit based on server needs
Inform players of the limit
Error: Nails disappear immediately or too quickly
Symptoms:
Nails vanish right after placement
Cleanup happens too fast
Solution:
Check
J0.NailsCfg.CleanUpvalue inshared/config.lua:Verify value is in minutes, not seconds
Check if there are multiple cleanup timers running (shouldn't happen)
Prevention:
Set appropriate cleanup time for your server
Test cleanup timing
Error: Script causes server lag or high resmon
Symptoms:
Server performance degrades
High resource monitor usage
FPS drops
Solution:
Check for too many active nails (hundreds can cause issues)
Verify cleanup timer is working (nails should disappear after set time)
Check for script conflicts with other resources
Ensure
ox_libis up to dateContact support for assistance with optimizing damage detection range if needed
Prevention:
Keep cleanup time reasonable (5-15 minutes)
Monitor active nail count
Update dependencies regularly
Debugging Steps
General Debugging Process
Check Console Logs
Server console for server-side errors
Client console (F8) for client-side errors
Look for Lua errors, missing exports, or nil values
Verify Dependencies
Ensure all required resources are started
Check resource start order in
server.cfgVerify resource versions are compatible
Test Configuration
Verify
shared/config.luasettings are correctCheck for typos in framework/inventory/target names
Ensure all values are valid (numbers where needed)
Isolate the Issue
Test with minimal configuration
Disable other scripts to check for conflicts
Test in a clean environment
Check Resource Status
Use
ensurecommand to verify resources are loadedCheck resource status in server console
Verify no resource conflicts
Console Commands for Debugging
Check if resource is running:
Restart resource:
Check resource status:
Common Debug Scenarios
Scenario 1: Script Won't Start
Check
server.cfgfor resource entryVerify
ox_libis started firstCheck console for specific error
Verify file structure is correct
Check
fxmanifest.luafor syntax errors
Scenario 2: Items Don't Work
Verify items are added to inventory correctly
Check item names match exactly
Verify useable item registration (ESX)
Check inventory system is running
Test item usage in inventory
Scenario 3: Nails Don't Spawn
Check custom prop availability
Verify client console for errors
Check if progress bar completes
Verify player coordinates are valid
Test with different location
Scenario 4: Targeting Doesn't Work
Verify targeting system is installed
Check configuration matches installed system
Test targeting system separately
Verify targeting resource is started
Try different targeting system as test
Prevention Tips
Always Start Dependencies First
ox_libbeforeJ0-nailScriptFramework before
J0-nailScriptTargeting system before
J0-nailScript
Verify Configuration
Double-check framework name spelling
Match inventory system correctly
Verify targeting system name
Test After Changes
Test in development environment first
Verify all features work after configuration changes
Check console for errors
Keep Resources Updated
Update
ox_libregularlyKeep framework updated
Update targeting system if needed
Monitor Performance
Check resmon usage
Monitor active nail count
Watch for memory leaks
Getting Help
If you've tried all troubleshooting steps and still have issues:
Gather Information:
Server console errors
Client console errors (F8)
Configuration file contents
Resource versions (ox_lib, framework, etc.)
Check Documentation:
Review Installation Guide
Check Configuration Guide
Read FAQ
Contact Support:
Provide error messages
Include configuration details
Describe steps to reproduce issue
Most issues can be resolved by verifying dependencies, configuration, and resource start order.
Last updated