Skip to content

A powerful Lua table visualization tool for FiveM / RedM development. With just a short event you can debug your table - easy and plug-and-play. This Dev Tool provides a clean, interactive interface for viewing complex nested Lua tables, making debugging and development significantly easier.

Notifications You must be signed in to change notification settings

Blaze-Scripts/bs-tableviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Lua Table Debugger for FiveM/RedM

A powerful Lua table visualization tool for FiveM / RedM development. With just a short event you can debug your table - easy and plug-and-play. This Dev Tool provides a clean, interactive interface for viewing complex nested Lua tables, making debugging and development significantly easier.

✨ Features

  • 🔌 Standalone: Plug-and-play for FiveM and RedM development with no dependencies
  • 🧩 Lightweight Design: Lightweight and easy to use, fits your individual development workflow
  • 🍑 Simple Integration: Easy to use from any client or server script
  • 🔄 Dual View Mode: Toggle between structured tree view and raw JSON view
  • 🧠 Smart JSON Parsing: Automatically detects and parses nested JSON strings
  • 🔎 Advanced Search: Search in both tree and JSON views with scrollbar markers for easy navigation
  • 💯 Interactive Table Exploration: Expand/collapse nested tables with ease
  • 📋 Copy Options: Copy full JSON, specific paths, or individual values via context menu
  • ⌨️ Keyboard Shortcuts: Quickly navigate and control the viewer

📝 Preview

image image image

🔧 Installation

  1. Place the bs-tableviewer folder in your server's resources directory
  2. Add ensure bs-tableviewer to your server.cfg
  3. Restart your server or start the resource manually

📦 Exports / API

From Client Scripts

-- Using event
TriggerEvent('debugTable', myTable)

-- Using export (recommended)
exports['bs-tableviewer']:debugTable(myTable)

-- With custom title
exports['bs-tableviewer']:debugTable(myTable, "My Custom Title") -- optional title

From Server Scripts

-- Send table to specific player
TriggerClientEvent('debugTable', source, myTable)

-- Example with player data serverside
local Player = exports.qbx_core:GetPlayer(source)
TriggerClientEvent('debugTable', source, Player.PlayerData, "Player Data") -- optional title

Test Commands

  • /testviewer - Shows a test table for demonstration purposes

⌨️ Keyboard Shortcuts

Shortcut Action
Esc Close the viewer
Ctrl+F Focus search box
Ctrl+J Toggle between tree and JSON views

🔥 Advanced Features

JSON String Parsing

The table viewer automatically detects and parses JSON strings within your data, making it easier to navigate complex nested structures. Parsed JSON strings are marked with a "parsed" badge in the tree view.

Search with Scrollbar Markers

When searching in JSON view, markers appear on the scrollbar showing the positions of all matches, allowing you to quickly navigate between search results by clicking on the markers.

Context Menu

Right-click on any item to access additional options:

  • Copy Path: Copies the Lua-compatible path to the item
  • Copy Value: Copies the value of the item

🧰 Dependencies

This resource is completely standalone with no external dependencies, making it extremely lightweight and easy to integrate into any server.

🤝 Support

For support, join our Discord server: https://discord.gg/xUcj2R4ZX4

At Blaze Scripts, we’re here to make your life easier - so if you ever run into a hiccup with one of our resources, just reach out and we’ll jump in to help. We strive to support all major frameworks, but on the rare occasion you’re using something outside our usual expertise, we might not be able to provide direct assistance. Either way, we’ll always point you toward resources or guidance to keep your project moving forward.

🔗 Links

License

This resource is licensed under the MIT License - see the LICENSE file for details.

About

A powerful Lua table visualization tool for FiveM / RedM development. With just a short event you can debug your table - easy and plug-and-play. This Dev Tool provides a clean, interactive interface for viewing complex nested Lua tables, making debugging and development significantly easier.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published