Skip to main content

Admin Tools

nd_crafting includes a powerful admin menu for managing stations and debugging.

Opening Admin Menu

/craftadmin

Requires the ACE permission: nd_crafting.admin

Setting Up Permissions

Add to your server.cfg:

add_ace group.admin nd_crafting.admin allow

Or for specific players:

add_ace identifier.license:xxxxx nd_crafting.admin allow

Admin Menu Features

Stations Tab

  • View all stations - See every station on the server
  • Teleport - Click to teleport to any station
  • Remove - Delete stations (cancels active crafts)
  • Place new - Add new stations with gizmo placement

Placing a Station

  1. Select station type from dropdown
  2. Click Place Station
  3. Use gizmo controls to position:
    • Mouse - Move position
    • Q - Toggle world/local space
    • Alt - Snap to ground
    • Enter - Confirm placement
    • Escape - Cancel

Prop Offset Tool

Configure where the crafting prop appears:

  1. Select station type
  2. Click Offset
  3. Move the sphere to desired position
  4. Press Enter to save
  5. Copy output from F8 console

The output will be:

propOffset = { x = 0.35, y = -0.12, z = 1.45 },

Paste this into your station type config.

Debug Mode

Enable debug mode in config:

Config.Debug = true

This enables:

  • Extra console logging
  • Distance checks displayed
  • Station state info
  • Queue processing logs

Database Management

View All Crafts

SELECT * FROM nd_crafting_queue 
ORDER BY created_at DESC;

Clear Stuck Crafts

UPDATE nd_crafting_queue 
SET status = 'cancelled'
WHERE status = 'crafting'
AND end_time < UNIX_TIMESTAMP();

View All Stations

SELECT * FROM nd_crafting_stations;

Remove Orphaned Crafts

DELETE FROM nd_crafting_queue 
WHERE station_id NOT IN (
SELECT id FROM nd_crafting_stations
);

Console Commands

Server Console

-- Refresh all stations (reloads from database)
nd_crafting:refreshStations

-- Clear completed crafts older than 7 days
nd_crafting:cleanup

Troubleshooting Admin Issues

Can't open admin menu

  1. Check you have the ACE permission
  2. Verify with whois command
  3. Check console for errors

Stations not appearing after placement

  1. Check database connection
  2. Look for errors in F8 console
  3. Try /refresh command

Gizmo not working

  1. Make sure you're close to spawn location
  2. Check for conflicting keybinds
  3. Try restarting the resource