Devtools is a simple yet useful LUA / JSON table viewer for development purposes, as well as a 1 click script restart.
It allows developers to view tables in a JSON format, sort and search through them with ease or view them as LUA tables.
Devtools include a simple way to copy a table in order to move it to some external text editor or work environment.
Take a look at the preview to see more.
Simply trigger the event below, sending a LUA table in the first argument.
The UI will only open when you trigger the event.
This event can be placed in while loops and the displayed table will be updated (yes it will be high ms on resmon when in a loop but this is a developer resource for dev servers).
If you close the UI, it can only be reopened by triggering the event again.
You can disable the NUI focus by clicking
middle mouse buttonwhile the UI is still open, and the UI will stay on your screen even while you are triggering the event.
From server to client
TriggerClientEvent('table', source, TABLE_HERE)
From client to client
The purpose of this feature is to be able to quickly restart scripts when developing and debugging. To save a script to restart you can use the chat command below to save your chosen script.
Part 1: Use the chat command
/restart_script "script_name" to save the name of your chosen script in the
restart_script.txt file and cache it in the server side. Now when you start your server or restart the script you can simply press the
(numpad +) key to restart the script.
/restart_script <script name>- (Example
Save the name of a script to use in the quick restart keypress.
The example command will save the resource “cd_garage”.
We will not be providing any kind of installation / usage support for this resource due to the lack of time and resources to do so.
In case You find any bugs please report them either here or ( preferably ) by opening an issue on the GitHub repository.
As always, we are open to suggestions and ideas on ways we can expand this resource.
For developers by Codesign <3