FAQ & Troubleshooting
Common questions and solutions for nd_crafting.
Installation Issues
"ox_lib is not installed"
Solution: Make sure ox_lib is:
- Downloaded and in your resources folder
- Started before nd_crafting in
server.cfg
ensure ox_lib
ensure nd_crafting
"oxmysql is not installed"
Solution: Same as above - ensure oxmysql starts first and is connected to your database.
Database tables not created
Solution: Run the SQL file manually:
- Open your database manager (HeidiSQL, phpMyAdmin, etc.)
- Import
nd_crafting/sql/install.sql - Restart the resource
Station Issues
Stations are floating
Solution: All stations now automatically snap to ground. If you still have issues:
- Delete the floating station
- Re-place it with
/craftadmin - Or add
zOffsetto the station type config
Can't interact with station
Checklist:
- Are you close enough? (Default 2.0 units)
- Is ox_target running?
- Check for errors in F8 console
- Verify station exists in database
Station not showing recipes
Possible causes:
- Recipe IDs in station config don't match
Config.Recipes - Recipe has job restriction you don't meet
- Syntax error in config file
Crafting Issues
Ingredients consumed but no output
Possible causes:
- Craft failed due to
successRate(check notifications) - Inventory is full
- Check hooks for errors
Crafts stuck at 100%
Solution:
- Check if
onCraftCompletehook has errors - Verify oxmysql connection
- Run cleanup SQL:
UPDATE nd_crafting_queue
SET status = 'completed'
WHERE end_time < UNIX_TIMESTAMP()
AND status = 'crafting';
Can't cancel crafts
Possible causes:
Config.Queue.allowCancel = false- Past the
cancelTimeLimit - Not your craft
UI Issues
UI not opening
Checklist:
- Check F8 console for NUI errors
- Verify
web/distfolder exists - Try
ensure nd_crafting
UI stuck open
Solution:
- Press Escape multiple times
- If still stuck:
/e cto cancel animation - Relog as last resort
Performance Issues
Server lag when crafting
Solutions:
- Reduce
Config.Queue.TickRate(higher = less frequent checks) - Lower
Config.Queue.MaxPerStation - Enable
Config.Queue.CleanupRetentionDaysto auto-delete old crafts
High database load
Solutions:
- Add indexes to database (should be in install.sql)
- Run cleanup to remove old completed crafts
- Check for stuck queries
Config Errors
"attempt to index nil value"
Cause: Syntax error in config file
Solution:
- Check for missing commas
- Verify all recipe/station IDs are quoted
- Match opening and closing braces
Recipe not available
Checklist:
- Recipe ID is in
Config.Recipes - Recipe ID is in station's
recipesarray - No typos in recipe ID
- Job/gang restrictions met
Still Need Help?
- Enable
Config.Debug = truefor more info - Check F8 console for client errors
- Check server console for server errors
- Join our Discord for support: discord.gg/ndscripts